diff options
author | Christian Hesse <mail@eworm.de> | 2024-01-30 07:18:38 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-01-30 07:18:38 +0100 |
commit | 5b6ed4216e20df9c3d188d72ddab93d490a881db (patch) | |
tree | d26ac7d64552a4f68cd9499eb0080a2bf899f863 /global-functions.rsc | |
parent | 07cdeadf43009a82be0f8cfc5e09fc450e0df26d (diff) |
global-functions: $ScriptInstallUpdate: warn just once...
... for every script on required RouterOS version.
Diffstat (limited to 'global-functions.rsc')
-rw-r--r-- | global-functions.rsc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index 314ea6e..d8d688c 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -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={ |