mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-24 21:04:28 +02:00
global-functions: $FetchHuge: use $RmFile
This commit is contained in:
parent
ea8ec6b580
commit
d19b90df08
1 changed files with 2 additions and 1 deletions
|
@ -457,6 +457,7 @@
|
|||
:global IfThenElse;
|
||||
:global LogPrint;
|
||||
:global MkDir;
|
||||
:global RmFile;
|
||||
:global WaitForFile;
|
||||
|
||||
:set CheckCert [ $IfThenElse ($CheckCert = "false") "no" "yes-without-crl" ];
|
||||
|
@ -473,7 +474,7 @@
|
|||
http-header-field=({ [ $FetchUserAgentStr $ScriptName ] }) as-value;
|
||||
} on-error={
|
||||
:if ([ $WaitForFile $FileName 500ms ] = true) do={
|
||||
/file/remove $FileName;
|
||||
$RmFile $FileName;
|
||||
}
|
||||
$LogPrint debug $0 ("Failed downloading from: " . $Url);
|
||||
/file/remove $DirName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue