mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-28 20:30:05 +02:00
packages-update: use :onerror for outer block
This commit is contained in:
parent
c720eadd2c
commit
9a5a2aec4f
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
|||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||
|
||||
:local ExitOK false;
|
||||
:do {
|
||||
:onerror Err {
|
||||
:local ScriptName [ :jobname ];
|
||||
|
||||
:global BackupRandomDelay;
|
||||
|
@ -163,6 +163,6 @@
|
|||
$LogPrint info $ScriptName ("Rebooting for update.");
|
||||
:delay 1s;
|
||||
/system/reboot;
|
||||
} on-error={
|
||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
||||
} do={
|
||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue