mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 04:54:28 +02:00
global-functions: $ScriptInstallUpdate: use $ExitError to indicate unintentional error
This commit is contained in:
parent
ff00c27f99
commit
8c5bd8f5e2
1 changed files with 4 additions and 2 deletions
|
@ -1018,7 +1018,7 @@
|
|||
}
|
||||
|
||||
# install new scripts, update existing scripts
|
||||
:set ScriptInstallUpdate do={
|
||||
:set ScriptInstallUpdate do={ :do {
|
||||
:local Scripts [ :toarray $1 ];
|
||||
:local NewComment [ :tostr $2 ];
|
||||
|
||||
|
@ -1237,7 +1237,9 @@
|
|||
:set GlobalConfigChanges;
|
||||
:set GlobalConfigMigration;
|
||||
}
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
||||
# lock script against multiple invocation
|
||||
:set ScriptLock do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue