From b9be9906a8dc6ccbda29e686b705b56a49f8d14a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 12 Mar 2026 04:23:02 +0000 Subject: [PATCH] Fix install.sh syntax error caused by duplicate function and merge conflict marker Remove a duplicate `install_pilot_deps()` definition (lines 1110-1139) that contained a leftover `=======` merge conflict marker. The duplicate was missing its closing `fi` and `}`, causing a "syntax error: unexpected end of file" on line 1533. The first, complete `install_pilot_deps()` (with Termux support, stub creation, and playwright handling) is retained. https://claude.ai/code/session_019ktqAbGXnFrFD52W4qG2Yu --- install.sh | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/install.sh b/install.sh index 497776d..5929fe5 100755 --- a/install.sh +++ b/install.sh @@ -1107,36 +1107,6 @@ install_pilot_deps() { fi } -# --- Install Pilot Python requirements inside a venv --- -install_pilot_deps() { - local req_file="$SCRIPT_DIR/pilot/requirements.txt" - if [[ ! -f "$req_file" ]]; then - return 0 - fi - - local python_cmd="" - command -v python3 &>/dev/null && python_cmd="python3" - command -v python &>/dev/null && [[ -z "$python_cmd" ]] && python_cmd="python" - - if [[ -z "$python_cmd" ]]; then - warn "Python not found — skipping Pilot dependencies" - return 0 - fi - - local venv_dir="$SCRIPT_DIR/pilot/.venv" - info "Creating Pilot virtual environment..." - if ! "$python_cmd" -m venv "$venv_dir"; then - warn "venv creation failed — skipping Pilot dependencies" - return 0 - fi - - info "Installing Pilot AI dependencies..." - if "$venv_dir/bin/pip" install -q --prefer-binary -r "$req_file"; then - ok "Pilot dependencies installed" - _PILOT_PYTHON="$venv_dir/bin/python" - else - warn "Pilot dependency install failed — run manually: $venv_dir/bin/pip install -r pilot/requirements.txt" -======= # --- Install browser engine for Pilot's browser control feature --- # # Desktop (Linux/macOS/Windows/WSL):