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:
@ -54,7 +54,7 @@ $LogPrintExit2 debug $0 ("Checking for updates...") false;
|
|||||||
$LogPrintExit2 info $0 ("An empty string is not a valid version.") true;
|
$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;
|
$LogPrintExit2 info $0 ("System is already up to date.") true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user