mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-31 16:24:25 +02: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={
|
:if ([ :typeof $ScriptLockOrder ] = "nothing") do={
|
||||||
:set ScriptLockOrder [ :toarray "" ];
|
:set ScriptLockOrder [ :toarray "" ];
|
||||||
}
|
}
|
||||||
|
:if ([ :typeof ($ScriptLockOrder->$Script) ] = "nothing") do={
|
||||||
|
:set ($ScriptLockOrder->$Script) [ :toarray "" ];
|
||||||
|
}
|
||||||
|
|
||||||
:local JobCount do={
|
:local JobCount do={
|
||||||
:local Script [ :tostr $1 ];
|
:local Script [ :tostr $1 ];
|
||||||
|
@ -928,10 +931,6 @@
|
||||||
|
|
||||||
:global ScriptLockOrder;
|
:global ScriptLockOrder;
|
||||||
|
|
||||||
:if ([ :typeof ($ScriptLockOrder->$Script) ] = "nothing") do={
|
|
||||||
:set ($ScriptLockOrder->$Script) [ :toarray "" ];
|
|
||||||
}
|
|
||||||
|
|
||||||
:while (true) do={
|
:while (true) do={
|
||||||
:local Pos [ :len ($ScriptLockOrder->$Script) ];
|
:local Pos [ :len ($ScriptLockOrder->$Script) ];
|
||||||
:set ($ScriptLockOrder->$Script->$Pos) $Add;
|
:set ($ScriptLockOrder->$Script->$Pos) $Add;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue