bootstrap.sh: redirect stdin from /dev/tty when launching setup.sh

curl | bash consumes stdin from the pipe, so when bootstrap hands off
to setup.sh the script gets EOF immediately and exits with 'Cancelled'.
Redirecting </dev/tty restores keyboard input for the interactive menu.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LQJBvqzXeyuhhAcAA3Q5Wq
This commit is contained in:
Claude
2026-06-28 12:09:42 +00:00
parent 5954cdb984
commit bb107b424b
+2 -2
View File
@@ -60,7 +60,7 @@ if [ -f "${SCRIPT_DIR}/setup.sh" ]; then
&& chown -R "${SUDO_USER:-$(id -un)}:" "$DEST" 2>/dev/null || true
echo ""
fi
exec bash "${SCRIPT_DIR}/setup.sh"
exec bash "${SCRIPT_DIR}/setup.sh" </dev/tty
fi
# ── Options 1 & 2: clone from GitHub ─────────────────────────────────────────
@@ -91,4 +91,4 @@ echo ""
echo " Launching setup..."
echo ""
exec bash "$DEST/setup.sh"
exec bash "$DEST/setup.sh" </dev/tty