global-functions: $ScriptInstallUpdate: either or...

... but not both.
This commit is contained in:
Christian Hesse 2025-11-07 00:00:03 +01:00
parent 66f247cf6e
commit dad4bc3f18

View file

@ -1312,6 +1312,7 @@
:if ($ScriptVal->"source" = "#!rsc by RouterOS\n") do={ :if ($ScriptVal->"source" = "#!rsc by RouterOS\n") do={
$LogPrint warning $0 ("Removing dummy. Typo on installation?"); $LogPrint warning $0 ("Removing dummy. Typo on installation?");
/system/script/remove $Script; /system/script/remove $Script;
:error false;
} }
:if ([ :len ($ScriptInfo->"base-url") ] = 0 && [ :len ($ScriptInfo->"url-suffix") ] = 0 && \ :if ([ :len ($ScriptInfo->"base-url") ] = 0 && [ :len ($ScriptInfo->"url-suffix") ] = 0 && \
[ :len $CheckSum ] = 0) do={ [ :len $CheckSum ] = 0) do={