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