Skip to content

Fix install.sh to read user input from /dev/tty#6

Merged
chigichan24 merged 1 commit into
mainfrom
fix-install-tty
Mar 21, 2026
Merged

Fix install.sh to read user input from /dev/tty#6
chigichan24 merged 1 commit into
mainfrom
fix-install-tty

Conversation

@chigichan24
Copy link
Copy Markdown
Owner

Summary

Fix read in install.sh to use /dev/tty instead of stdin, so it works when run via curl | bash.

Problem

When piped through curl | bash, stdin is the script content itself. read -rp reads from stdin and gets garbage, resulting in broken variable expansion in the install path.

Fix

Read from /dev/tty explicitly, which always points to the user's terminal.

Test plan

  • curl -fsSL .../install.sh | bash prompts correctly and installs to the chosen directory

🤖 Generated with Claude Code

When run via curl | bash, stdin is the script itself, so read
gets garbage. Reading from /dev/tty ensures the user is prompted
correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chigichan24 chigichan24 merged commit 4a705f2 into main Mar 21, 2026
1 check passed
@chigichan24 chigichan24 deleted the fix-install-tty branch March 21, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant