global-functions: $ScriptInstallUpdate: fix syntax error

This commit is contained in:
Christian Hesse 2025-05-23 11:16:40 +02:00
parent 86ad41f6b6
commit 4bd7d44cd2

View file

@ -1212,7 +1212,7 @@
:set SourceNew [ :tolf ($Result->"data") ]; :set SourceNew [ :tolf ($Result->"data") ];
} }
} do={ } do={
$LogPrint warning $0 ("Failed fetching script '" . $ScriptVal->"name" . . "': " . $Err); $LogPrint warning $0 ("Failed fetching script '" . $ScriptVal->"name" . "': " . $Err);
: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;