mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 02:04:56 +02:00
global-functions: $DownloadPackage: use $RmFile
This commit is contained in:
parent
dbdf295244
commit
ea8ec6b580
1 changed files with 2 additions and 1 deletions
|
@ -343,6 +343,7 @@
|
|||
:global CleanFilePath;
|
||||
:global LogPrint;
|
||||
:global MkDir;
|
||||
:global RmFile;
|
||||
:global WaitForFile;
|
||||
|
||||
:if ([ :len $PkgName ] = 0) do={ :return false; }
|
||||
|
@ -386,7 +387,7 @@
|
|||
$LogPrint debug $0 ("Downloading package file failed.");
|
||||
}
|
||||
|
||||
/file/remove [ find where name=$PkgDest ];
|
||||
$RmFile $PkgDest;
|
||||
:set Retry ($Retry - 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue