Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix(install): use if statements to avoid set -e with pattern matching
ShawnPana56b2fd8e3134
diff --git a/install.sh b/install.shindex c543edb2e..7f08935a7 100755--- a/install.sh+++ b/install.sh@@ -280,14 +280,14 @@ show_bash_menu() {echo -n "> "# Read from /dev/tty to work even when script is piped- # Temporarily disable set -e to handle read edge cases+ # Keep set +e for the whole function to avoid issues with pattern matchingset +eread -r choices < /dev/tty- set -echoices=${choices:-1}- [[ "$choices" == *"1"* ]] && INSTALL_LOCAL=true- [[ "$choices" == *"2"* ]] && INSTALL_REMOTE=true+ if [[ "$choices" == *"1"* ]]; then INSTALL_LOCAL=true; fi+ if [[ "$choices" == *"2"* ]]; then INSTALL_REMOTE=true; fi+ set -e}# =============================================================================