aboutsummaryrefslogtreecommitdiffstats
path: root/packages-update
diff options
context:
space:
mode:
Diffstat (limited to 'packages-update')
-rw-r--r--packages-update10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages-update b/packages-update
index 8e18e77..7c88eac 100644
--- a/packages-update
+++ b/packages-update
@@ -55,6 +55,16 @@ $ScriptLock "packages-update";
/ system script run $Script;
} on-error={
$LogPrintExit warning ("Running backup script " . $ScriptName . " before update failed!") false;
+ :if ([ $ScriptFromTerminal "packages-update" ] = true) do={
+ :put "Do you want to continue anyway? [y/N]";
+ :if (([ :terminal inkey timeout=60 ] % 32) = 25) do={
+ $LogPrintExit info ("User requested to continue anyway.") false;
+ } else={
+ $LogPrintExit info ("Canceled update...") true;
+ }
+ } else={
+ $LogPrintExit info ("Canceled non-interactive update.") true;
+ }
}
}