From a90511cff95bae67682f8b2c242ad3b74e4740b3 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 27 Apr 2021 08:57:05 +0200 Subject: check-routeros-update: be verbose when run from terminal only --- check-routeros-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-54-g00ecf