aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/global-functions b/global-functions
index ed7363b..cdc7300 100644
--- a/global-functions
+++ b/global-functions
@@ -306,11 +306,12 @@
# lock script against multiple invocation
:set ScriptLock do={
+ :global LogPrintExit;
+
:local Script [ :tostr $1 ];
:if ([ / system script job print count-only where script=$Script ] > 1) do={
- :log debug ("Script " . $Script . " started more than once... Aborting.");
- :error "Locked."
+ $LogPrintExit info ("Script " . $Script . " started more than once... Aborting.") true;
}
}