fix: redirect stdin from /dev/tty for curl|sh installs #3

Merged
jason.woltje merged 1 commits from fix/curl-pipe-stdin into main 2026-02-21 19:03:08 +00:00
Owner

When running via curl URL | sh, stdin is the curl pipe, not the terminal. Interactive prompts exit immediately. This redirects stdin from /dev/tty when available and falls back to --non-interactive when no TTY exists.

When running via curl URL | sh, stdin is the curl pipe, not the terminal. Interactive prompts exit immediately. This redirects stdin from /dev/tty when available and falls back to --non-interactive when no TTY exists.
jason.woltje added 1 commit 2026-02-21 19:02:53 +00:00
When running via `curl URL | sh`, stdin is the curl pipe, not the
terminal. Interactive prompts (wizard or legacy install.sh) need
a real TTY. Redirect stdin from /dev/tty when available, fall back
to --non-interactive mode when no TTY exists (CI/Docker).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 1c45894711 into main 2026-02-21 19:03:08 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/bootstrap#3