diff options
author | Christian Hesse <mail@eworm.de> | 2019-12-03 22:07:29 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-12-03 23:45:55 +0100 |
commit | f26222d5a830d9ef8023f43409e95ad67ecf23b4 (patch) | |
tree | a22678e6ece72d970bcf9c7905cf0ae4e279d12a /check-routeros-update | |
parent | ebd5ff9bfecf8a843eb7ed87d10b2bacc8518ca6 (diff) |
check-routeros-update: use $ScriptFromTerminal
Diffstat (limited to 'check-routeros-update')
-rw-r--r-- | check-routeros-update | 3 |
1 files changed, 2 insertions, 1 deletions
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; |