From 94d5f36eaf1c2a53384359918efbed9076933269 Mon Sep 17 00:00:00 2001 From: shivam Date: Sat, 21 Mar 2026 12:50:48 -0700 Subject: [PATCH] install.sh: fix pipx path abort in dash, add fallback warning Made-with: Cursor --- scripts/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index a5a95fad030..40ac9ab3f7d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -92,7 +92,7 @@ if command -v pipx >/dev/null 2>&1; then info "Using pipx (isolated install)" if pipx install --force "${LITELLM_PACKAGE}"; then # pipx installs to ~/.local/bin by default; try PIPX_BIN_DIR, then PATH - for try in "${PIPX_BIN_DIR:-${HOME}/.local/bin}/litellm" "$(command -v litellm 2>/dev/null)"; do + for try in "${PIPX_BIN_DIR:-${HOME}/.local/bin}/litellm" "$(command -v litellm 2>/dev/null || true)"; do if [ -n "$try" ] && [ -x "$try" ]; then LITELLM_BIN="$try" break @@ -102,6 +102,8 @@ if command -v pipx >/dev/null 2>&1; then die "pipx install succeeded but litellm binary not found. Check PIPX_BIN_DIR (current: ${PIPX_BIN_DIR:-${HOME}/.local/bin}). Run: pipx list" fi + else + info "pipx install failed, falling back to venv" fi fi