From f26222d5a830d9ef8023f43409e95ad67ecf23b4 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 3 Dec 2019 22:07:29 +0100 Subject: check-routeros-update: use $ScriptFromTerminal --- check-routeros-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check-routeros-update b/check-routeros-update index dccfcbe..8b9d94d 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -9,6 +9,7 @@ :global SentRouterosUpdateNotification; :global DeviceInfo; +:global ScriptFromTerminal; :global SendNotification; :local DoUpdate do={ @@ -55,7 +56,7 @@ } } - :if ([ / system script job print count-only where script="check-routeros-update" parent~"." ] > 0) do={ + :if ([ $ScriptFromTerminal "check-routeros-update" ] = true) do={ :put ("Do you want to install RouterOS version " . $Update->"latest-version" . "? [y/N]"); :if ([ :terminal inkey timeout=60 ] = 121) do={ $DoUpdate; -- cgit v1.2.3-70-g09d2