aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-12-09 12:51:19 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-12-09 12:52:03 +0100
commitcdcab4599a3d5fc6c2f6b8554e969eef536f0f1a (patch)
tree2ba1801e1f71b9dfc8f1296c0f2af663179fcab1
parent9c87b5a2221ba507422232d7fd2bd08bbc5587ff (diff)
global-functions: $ScriptLock: initialize earlier
-rw-r--r--global-functions7
1 files changed, 3 insertions, 4 deletions
diff --git a/global-functions b/global-functions
index 1dd4642..f5682be 100644
--- a/global-functions
+++ b/global-functions
@@ -888,6 +888,9 @@
:if ([ :typeof $ScriptLockOrder ] = "nothing") do={
:set ScriptLockOrder [ :toarray "" ];
}
+ :if ([ :typeof ($ScriptLockOrder->$Script) ] = "nothing") do={
+ :set ($ScriptLockOrder->$Script) [ :toarray "" ];
+ }
:local JobCount do={
:local Script [ :tostr $1 ];
@@ -928,10 +931,6 @@
:global ScriptLockOrder;
- :if ([ :typeof ($ScriptLockOrder->$Script) ] = "nothing") do={
- :set ($ScriptLockOrder->$Script) [ :toarray "" ];
- }
-
:while (true) do={
:local Pos [ :len ($ScriptLockOrder->$Script) ];
:set ($ScriptLockOrder->$Script->$Pos) $Add;