mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-routeros-update: use $ScriptFromTerminal
This commit is contained in:
parent
ebd5ff9bfe
commit
f26222d5a8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue