1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

global-functions: $ScriptLock: do not exit from global function

This commit is contained in:
Christian Hesse
2024-03-05 16:12:36 +01:00
parent 56e97dd60c
commit 1e8918fdaa
57 changed files with 172 additions and 61 deletions

View File

@@ -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;