Skip to content

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

fix(install): disable set -e around read for tty input

ShawnPanaccdec4f33f1f
diff --git a/install.sh b/install.sh
index 4c85abc5b..c543edb2e 100755
--- a/install.sh
+++ b/install.sh
@@ -280,8 +280,10 @@ show_bash_menu() {
echo -n "> "
# Read from /dev/tty to work even when script is piped
- # Use subshell to prevent set -e from killing script on read timeout/empty
- choices=$(head -n1 < /dev/tty 2>/dev/null) || true
+ # Temporarily disable set -e to handle read edge cases
+ set +e
+ read -r choices < /dev/tty
+ set -e
choices=${choices:-1}
[[ "$choices" == *"1"* ]] && INSTALL_LOCAL=true