diff --git a/bootstrap.sh b/bootstrap.sh index 2f5bac9..50fa374 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -48,7 +48,9 @@ echo "" # ── Option 3: already running from inside the repo ─────────────────────────── # If setup.sh is sitting next to this script, we have everything we need. +set +u SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-}")" 2>/dev/null && pwd || echo "")" +set -u if [ -f "${SCRIPT_DIR}/setup.sh" ]; then echo " Running from local copy at $SCRIPT_DIR" echo " (No git or internet needed)"