mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-31 08:14:29 +02:00
global-functions: $ScriptLock: do not exit from global function
This commit is contained in:
parent
56e97dd60c
commit
1e8918fdaa
57 changed files with 172 additions and 61 deletions
|
@ -18,7 +18,9 @@
|
|||
:global LogPrintExit2;
|
||||
:global ScriptLock;
|
||||
|
||||
$ScriptLock $ScriptName;
|
||||
:if ([ $ScriptLock $ScriptName ] = false) do={
|
||||
:return false;
|
||||
}
|
||||
|
||||
:if ([ :len [ /partitions/find ] ] < 2) do={
|
||||
$LogPrintExit2 error $ScriptName ("Device does not have a fallback partition.") true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue