Merge pull request #153 from outis1one/claude/bootstrap-script-404-d8dc7h

bootstrap.sh: fix BASH_SOURCE unbound variable when piped through bash
This commit is contained in:
Outis
2026-06-28 08:01:31 -04:00
committed by GitHub
+1 -1
View File
@@ -48,7 +48,7 @@ echo ""
# ── Option 3: already running from inside the repo ───────────────────────────
# If setup.sh is sitting next to this script, we have everything we need.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" 2>/dev/null && pwd || echo "")"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-}")" 2>/dev/null && pwd || echo "")"
if [ -f "${SCRIPT_DIR}/setup.sh" ]; then
echo " Running from local copy at $SCRIPT_DIR"
echo " (No git or internet needed)"