mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-01 13:44:26 +02:00
fw-addr-lists: use :onerror for outer block
This commit is contained in:
parent
d99380443b
commit
0e93d8ca66
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||||
|
|
||||||
:local ExitOK false;
|
:local ExitOK false;
|
||||||
:do {
|
:onerror Err {
|
||||||
:local ScriptName [ :jobname ];
|
:local ScriptName [ :jobname ];
|
||||||
|
|
||||||
:global FwAddrLists;
|
:global FwAddrLists;
|
||||||
|
@ -209,6 +209,6 @@
|
||||||
" - renewed: " . [ $HumanReadableNum $CntRenew 1000 ] . \
|
" - renewed: " . [ $HumanReadableNum $CntRenew 1000 ] . \
|
||||||
" - removed: " . [ $HumanReadableNum $CntRemove 1000 ]);
|
" - removed: " . [ $HumanReadableNum $CntRemove 1000 ]);
|
||||||
}
|
}
|
||||||
} on-error={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue