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 1a93c61bfd
commit 33e8af1924

View file

@ -1310,6 +1310,10 @@
}
} do={
$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={
$LogPrint warning $0 ("Removing dummy. Typo on installation?");
/system/script/remove $Script;