global-functions: $FetchHuge: use $RmFile

This commit is contained in:
Christian Hesse 2025-01-21 18:37:01 +01:00
parent ea8ec6b580
commit d19b90df08

View file

@ -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;