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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user