aboutsummaryrefslogtreecommitdiffstats
path: root/packages-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-01-30 22:06:37 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-01-30 22:08:31 +0100
commit52bd08b750b16b03494af7f7bdd66225fa82995a (patch)
tree0a2e81d209aab8768fc1d50292789fb4fa30a2a2 /packages-update
parent221b0409d5198c13c11b0dddb730bd0bf5752efe (diff)
packages-update: use correct syntax
(cherry picked from commit 27a81bcbca52d513c5b9c10578474a1863bd08af)
Diffstat (limited to 'packages-update')
-rw-r--r--packages-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages-update b/packages-update
index b6b0524..2e6d8be 100644
--- a/packages-update
+++ b/packages-update
@@ -35,7 +35,7 @@ $ScriptLock $0;
:if ($NumInstalled > $NumLatest) do={
:if ([ $ScriptFromTerminal $0 ] = true) do={
:put "Latest version is older than installed one. Want to downgrade? [y/N]";
- :if (([ :terminal inkey timeout=60 ] % 32) = 25) do={
+ :if (([ / terminal inkey timeout=60 ] % 32) = 25) do={
:set DoDowngrade true;
} else={
:put "Canceled...";
@@ -61,7 +61,7 @@ $ScriptLock $0;
$LogPrintExit2 warning $0 ("Running backup script " . $ScriptName . " before update failed!") false;
:if ([ $ScriptFromTerminal $0 ] = true) do={
:put "Do you want to continue anyway? [y/N]";
- :if (([ :terminal inkey timeout=60 ] % 32) = 25) do={
+ :if (([ / terminal inkey timeout=60 ] % 32) = 25) do={
$LogPrintExit2 info $0 ("User requested to continue anyway.") false;
} else={
$LogPrintExit2 info $0 ("Canceled update...") true;
@@ -80,7 +80,7 @@ $ScriptLock $0;
:if ([ $ScriptFromTerminal $0 ] = true) do={
:put "Do you want to (s)chedule reboot or (r)eboot now? [s/R]";
- :if (([ :terminal inkey timeout=60 ] % 32) = 19) do={
+ :if (([ / terminal inkey timeout=60 ] % 32) = 19) do={
/ system scheduler add name="reboot-for-update" start-time=03:00:00 interval=1d \
on-event=(":global RandomDelay; \$RandomDelay 3600; " . \
"/ system scheduler remove reboot-for-update; / system reboot;");