mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-02 09:15:03 +02:00
mod/scriptrunonce: use :onerror for outer block
This commit is contained in:
parent
f7ba78702f
commit
5958851bd7
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
|||
:global ScriptRunOnce;
|
||||
|
||||
# fetch and run script(s) once
|
||||
:set ScriptRunOnce do={ :do {
|
||||
:set ScriptRunOnce do={ :onerror Err {
|
||||
:local Scripts [ :toarray $1 ];
|
||||
|
||||
:global ScriptRunOnceBaseUrl;
|
||||
|
@ -51,6 +51,6 @@
|
|||
|
||||
:return true;
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} do={
|
||||
:global ExitError; $ExitError false $0 $Err;
|
||||
} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue