Repository navigation
Commit 281fdb2
authored
Probe /dev/tty by opening it, not by testing permission bits (#5)
[ -r /dev/tty ] passes in environments where the device exists but cannot be
opened (macOS reports 'Device not configured' only on open). The installer
then tried to prompt anyway: three open errors and a retry loop instead of
the clean 'no terminal — set QBRAID_API_KEY and re-run' message.
Verified both directions: under a real pty (script(1)) the probe yields
/dev/tty; with the unopenable device it yields empty and the installer dies
with the instruction.1 parent 559fbd7 commit 281fdb2
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | | - | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
0 commit comments