mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-routeros-update: be verbose when run from terminal only
This commit is contained in:
parent
96613e9bdd
commit
a90511cff9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue