mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $ScriptInstallUpdate: warn just once...
... for every script on required RouterOS version.
This commit is contained in:
@@ -951,6 +951,7 @@
|
|||||||
:global Grep;
|
:global Grep;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
|
:global LogPrintOnce;
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
:global RequiredRouterOS;
|
:global RequiredRouterOS;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
@@ -1026,7 +1027,7 @@
|
|||||||
"' failed! Ignoring!") false;
|
"' failed! Ignoring!") false;
|
||||||
}
|
}
|
||||||
} else={
|
} 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;
|
$Required . ", which is not met by your installation. Ignoring!") false;
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
|
Reference in New Issue
Block a user