1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

check-routeros-update: be verbose when run from terminal only

This commit is contained in:
Christian Hesse
2021-04-27 08:57:05 +02:00
parent 96613e9bdd
commit a90511cff9

View File

@ -54,7 +54,7 @@ $LogPrintExit2 debug $0 ("Checking for updates...") false;
$LogPrintExit2 info $0 ("An empty string is not a valid version.") true;
}
:if (($Update->"installed-version") = ($Update->"latest-version")) do={
:if ([ $ScriptFromTerminal $0 ] = true && ($Update->"installed-version") = ($Update->"latest-version")) do={
$LogPrintExit2 info $0 ("System is already up to date.") true;
}