mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-16 07:47:52 +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 CleanFilePath;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
|
:global RmFile;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
|
||||||
:if ([ :len $PkgName ] = 0) do={ :return false; }
|
:if ([ :len $PkgName ] = 0) do={ :return false; }
|
||||||
|
@ -386,7 +387,7 @@
|
||||||
$LogPrint debug $0 ("Downloading package file failed.");
|
$LogPrint debug $0 ("Downloading package file failed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/file/remove [ find where name=$PkgDest ];
|
$RmFile $PkgDest;
|
||||||
:set Retry ($Retry - 1);
|
:set Retry ($Retry - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue