global-functions: $ScriptInstallUpdate: give hint on ignore

Fixes: https://github.com/eworm-de/routeros-scripts/issues/112
This commit is contained in:
Christian Hesse 2025-11-02 09:19:16 +01:00
parent 7d701483d3
commit 20885c4620

View file

@ -1313,6 +1313,11 @@
$LogPrint warning $0 ("Removing dummy. Typo on installation?"); $LogPrint warning $0 ("Removing dummy. Typo on installation?");
/system/script/remove $Script; /system/script/remove $Script;
} }
:if ([ :len ($ScriptInfo->"base-url") ] = 0 && [ :len ($ScriptInfo->"url-suffix") ] = 0 && \
[ :len $CheckSum ] = 0) do={
$LogPrintOnce warning $0 \
("Added the script manually? Skip updates with 'ignore=true' in comment.");
}
:error false; :error false;
} }