From e462de6272ed7153f7aeed2a4ce499e1e76574c0 Mon Sep 17 00:00:00 2001 From: John Babich <166637847+babichgh@users.noreply.github.com> Date: Fri, 29 May 2026 23:58:03 +0300 Subject: [PATCH] Update user input prompts to read from /dev/tty Redirect input for user prompts to /dev/tty for better compatibility. --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 61ff798..54c6b0a 100755 --- a/install.sh +++ b/install.sh @@ -61,7 +61,7 @@ select_channel() { echo "Choose channel:" echo " 1) Latest stable release (default)" echo " 2) Latest dev (pre-release)" - read -r -p "Enter 1 or 2 [1]: " choice + read -r -p "Enter 1 or 2 [1]: " choice < /dev/tty case "${choice:-1}" in 1) CHANNEL="stable" ;; @@ -74,7 +74,7 @@ select_install_mode() { echo "Choose installation mode:" echo " 1) Download prebuilt binary from GitHub Release (recommended)" echo " 2) Build from git" - read -r -p "Enter 1 or 2 [1]: " choice + read -r -p "Enter 1 or 2 [1]: " choice < /dev/tty case "${choice:-1}" in 1) INSTALL_MODE="release" ;; @@ -215,4 +215,4 @@ main() { log "Log saved to $LOGFILE" } -main "$@" \ No newline at end of file +main "$@"