mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-30 15:54:56 +02:00
mod/scriptrunonce: $ScriptRunOnce: use $ExitError to indicate unintentional error
This commit is contained in:
parent
4968b79fc1
commit
73e0ac75f1
1 changed files with 4 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
|||
:global ScriptRunOnce;
|
||||
|
||||
# fetch and run script(s) once
|
||||
:set ScriptRunOnce do={
|
||||
:set ScriptRunOnce do={ :do {
|
||||
:local Scripts [ :toarray $1 ];
|
||||
|
||||
:global ScriptRunOnceBaseUrl;
|
||||
|
@ -49,4 +49,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue