mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-21 11:24:31 +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 debug $0 ("... from url: " . $Url);
|
||||
|
||||
:do {
|
||||
:onerror Err {
|
||||
/tool/fetch check-certificate=yes-without-crl $Url dst-path=$PkgDest;
|
||||
$WaitForFile $PkgDest;
|
||||
} on-error={
|
||||
$LogPrint warning $0 ("Downloading package file '" . $PkgName . "' failed.");
|
||||
} do={
|
||||
$LogPrint warning $0 ("Downloading package file '" . $PkgName . "' failed: " . $Err);
|
||||
:return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue