mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $ScriptLock: initialize earlier
This commit is contained in:
parent
9c87b5a222
commit
cdcab4599a
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue