global-functions: $ScriptInstallUpdate: use $ExitError to indicate unintentional error

This commit is contained in:
Christian Hesse 2024-12-09 09:02:04 +01:00
parent ff00c27f99
commit 8c5bd8f5e2

View file

@ -1018,7 +1018,7 @@
} }
# install new scripts, update existing scripts # install new scripts, update existing scripts
:set ScriptInstallUpdate do={ :set ScriptInstallUpdate do={ :do {
:local Scripts [ :toarray $1 ]; :local Scripts [ :toarray $1 ];
:local NewComment [ :tostr $2 ]; :local NewComment [ :tostr $2 ];
@ -1237,7 +1237,9 @@
:set GlobalConfigChanges; :set GlobalConfigChanges;
:set GlobalConfigMigration; :set GlobalConfigMigration;
} }
} } on-error={
:global ExitError; $ExitError false $0;
} }
# lock script against multiple invocation # lock script against multiple invocation
:set ScriptLock do={ :set ScriptLock do={