2 Commits

Author SHA1 Message Date
94aa6c0f01 Merge pull request #8 from babichgh/master
Update user input prompts to read from /dev/tty
2026-05-30 13:28:40 +08:00
John Babich
e462de6272 Update user input prompts to read from /dev/tty
Redirect input for user prompts to /dev/tty for better compatibility.
2026-05-29 23:58:03 +03:00

View File

@@ -61,7 +61,7 @@ select_channel() {
echo "Choose channel:" echo "Choose channel:"
echo " 1) Latest stable release (default)" echo " 1) Latest stable release (default)"
echo " 2) Latest dev (pre-release)" 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 case "${choice:-1}" in
1) CHANNEL="stable" ;; 1) CHANNEL="stable" ;;
@@ -74,7 +74,7 @@ select_install_mode() {
echo "Choose installation mode:" echo "Choose installation mode:"
echo " 1) Download prebuilt binary from GitHub Release (recommended)" echo " 1) Download prebuilt binary from GitHub Release (recommended)"
echo " 2) Build from git" 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 case "${choice:-1}" in
1) INSTALL_MODE="release" ;; 1) INSTALL_MODE="release" ;;