global-functions: $ScriptInstallUpdate: extra actions on 'not found' only

This commit is contained in:
Christian Hesse 2025-11-03 09:17:25 +01:00
parent dad4bc3f18
commit a72bccc49c

View file

@ -1309,6 +1309,10 @@
} }
} do={ } do={
$LogPrint warning $0 ("Failed fetching script '" . $ScriptVal->"name" . "': " . $Err); $LogPrint warning $0 ("Failed fetching script '" . $ScriptVal->"name" . "': " . $Err);
:if ($Err != "Fetch failed with status 404") do={
:error false;
}
: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;