From 6553f90c4566a40b641a306815385be1d69204bc Mon Sep 17 00:00:00 2001 From: Kunpeng Xie <68572236+pentaoa@users.noreply.github.com> Date: Tue, 15 Sep 2026 03:15:14 +0800 Subject: [PATCH] fix(updater): detect pending terminal input on macOS (#14093) --- tools/check_for_upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index b40a98931..83f511863 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -185,7 +185,7 @@ function has_typed_input() { # Consider that no input can be typed if stty fails # (this might happen if stdin is not a terminal) local termios - termios=$(stty --save 2>/dev/null) || return 1 + termios=$(stty -g 2>/dev/null) || return 1 { # Disable canonical mode so that typed input counts # regardless of whether Enter was pressed