:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/536/3e6969a3";
+:global CommitId "main/537/d58e450b";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 09:55:03 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 10:05:03 04.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 138;
:log error ($0 . " Failed creating directory!");
:return false;
}
- :local FileName ($DirName . "/" . [ $CleanName $0 ] . "-" . [ $GetRandom20CharAlNum ]);
- :onerror Err {
+ :local FileName ($DirName . "/" . [ $CleanName $FHScript ] . "-" . [ $GetRandom20CharAlNum ]);
+ :do {
/tool/fetch check-certificate=$CheckCert $Url dst-path=$FileName \
http-header-field=({ [ $FetchUserAgentStr $FHScript ] }) as-value;
- } do={
+ } on-error={
:if ([ $WaitForFile $FileName 500ms ] = true) do={
$RmFile $FileName;
}
}
:if ([ $WaitForFile $FileName 5s ] = false) do={
:log debug ($0 . " The file downloaded from " . $Url . " did not show up.");
+ $RmDir $DirName;
:return false;
}
:local FileSize [ /file/get $FileName size ];
:delay 100ms;
}
}
+ $RmFile $FileName;
$RmDir $DirName;
:return $Return;
}