Skip to content

Commit d64c2d5

Browse files
Frank Guoclaude
andcommitted
fix: show PATH prompt when piped from curl
-t 0 is false when stdin is piped. Use -c /dev/tty instead so the interactive prompt appears during curl | bash installs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 652eb46 commit d64c2d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ main() {
203203

204204
local export_line="export PATH=\"${install_dir}:\$PATH\""
205205

206-
if [[ -t 0 && -n "$shell_profile" ]]; then
206+
if [[ -c /dev/tty && -n "$shell_profile" ]]; then
207207
echo ""
208208
printf ' %b rekal is not on your PATH. Add it to %b%s%b? [Y/n] ' \
209209
"${DIM}${NC}" "${BOLD}" "$shell_profile" "${NC}"

0 commit comments

Comments
 (0)