Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix(install): read from /dev/tty for interactive menu when piped

ShawnPana5242beabf9b4
diff --git a/install.sh b/install.sh
index 76c71e5bf..e5c457221 100755
--- a/install.sh
+++ b/install.sh
@@ -278,8 +278,8 @@ show_bash_menu() {
echo "Press Enter for default [1]"
echo ""
- # Read with timeout and default
- read -t 60 -p "> " choices || choices="1"
+ # Read from /dev/tty to work even when script is piped
+ read -t 60 -p "> " choices < /dev/tty || choices="1"
choices=${choices:-1}
[[ "$choices" == *"1"* ]] && INSTALL_LOCAL=true