aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 08:57:05 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-27 08:57:05 +0200
commita90511cff95bae67682f8b2c242ad3b74e4740b3 (patch)
tree7811567b8529e3efdb0af523a606f287a814860f
parent96613e9bdd3fea3722ac807b01565d274bc82da0 (diff)
check-routeros-update: be verbose when run from terminal only
-rw-r--r--check-routeros-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/check-routeros-update b/check-routeros-update
index 27e346a..5109e30 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -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;
}