Commit c960e3f
committed
fix: stop analyze.sh from hanging at interactive prompts
The installer ran the compiled binary with `< /dev/tty` to give piped
`curl ... | bash` invocations a terminal. But a `bun build --compile`'d
binary can't read raw-mode keypresses from a freshly-opened /dev/tty fd,
so every interactive prompt hung with no way to type, arrow, or Ctrl-C
out — even for the recommended `bash -c "$(curl ...)"` form, whose stdin
was already a working terminal before the redirect replaced it.
Run with inherited stdin instead. The command-substitution form keeps a
real terminal on stdin and works; the piped form now fails the CLI's TTY
gate with a clear 'requires a terminal' message (exit 2) instead of
hanging.1 parent 367beb8 commit c960e3f
1 file changed
Lines changed: 10 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 64 | + | |
69 | 65 | | |
70 | 66 | | |
71 | 67 | | |
| |||
0 commit comments