check-routeros-update: use correct syntax

(cherry picked from commit dfe995be27)
This commit is contained in:
Christian Hesse 2022-01-30 22:05:58 +01:00
parent 0a9d0473f3
commit 221b0409d5

View file

@ -108,7 +108,7 @@ $LogPrintExit2 debug $0 ("Checking for updates...") false;
:if ([ $ScriptFromTerminal $0 ] = true) do={
:put ("Do you want to install RouterOS version " . $Update->"latest-version" . "? [y/N]");
:if (([ :terminal inkey timeout=60 ] % 32) = 25) do={
:if (([ / terminal inkey timeout=60 ] % 32) = 25) do={
$DoUpdate;
} else={
:put "Canceled...";