mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 20:34:27 +02:00
global-functions: $DownloadPackage: :do ... on-error=... -> :onerror ... do=...
This commit is contained in:
parent
a9e7bb0a05
commit
5b89f3e425
1 changed files with 3 additions and 3 deletions
|
@ -392,11 +392,11 @@
|
||||||
$LogPrint info $0 ("Downloading package file '" . $PkgName . "'...");
|
$LogPrint info $0 ("Downloading package file '" . $PkgName . "'...");
|
||||||
$LogPrint debug $0 ("... from url: " . $Url);
|
$LogPrint debug $0 ("... from url: " . $Url);
|
||||||
|
|
||||||
:do {
|
:onerror Err {
|
||||||
/tool/fetch check-certificate=yes-without-crl $Url dst-path=$PkgDest;
|
/tool/fetch check-certificate=yes-without-crl $Url dst-path=$PkgDest;
|
||||||
$WaitForFile $PkgDest;
|
$WaitForFile $PkgDest;
|
||||||
} on-error={
|
} do={
|
||||||
$LogPrint warning $0 ("Downloading package file '" . $PkgName . "' failed.");
|
$LogPrint warning $0 ("Downloading package file '" . $PkgName . "' failed: " . $Err);
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue