aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}