global-functions: $ScriptInstallUpdate: warn just once...

... for every script on required RouterOS version.
This commit is contained in:
Christian Hesse 2024-01-30 07:18:38 +01:00
parent 07cdeadf43
commit 5b6ed4216e

View file

@ -951,6 +951,7 @@
:global Grep;
:global IfThenElse;
:global LogPrintExit2;
:global LogPrintOnce;
:global ParseKeyValueStore;
:global RequiredRouterOS;
:global SendNotification2;
@ -1026,7 +1027,7 @@
"' failed! Ignoring!") false;
}
} else={
$LogPrintExit2 warning $0 ("The script '" . $ScriptVal->"name" . "' requires RouterOS " . \
$LogPrintOnce warning $0 ("The script '" . $ScriptVal->"name" . "' requires RouterOS " . \
$Required . ", which is not met by your installation. Ignoring!") false;
}
} else={