Commit c22ceba
authored
Linux - Fix interactive prompt handling during installation with curl (#2167)
### What changed?
- Fixed the interactive prompt not working when installing via piped
execution (`curl -L <url> | sh`)
- Added proper `/dev/tty` fallback to always allow user input where
available
- Removed duplicate prompt calls
- Improved handling of non-interactive environments with a clear
fallback message
### Works in these cases
```sh
# ✔ Interactive (TTY prompt works even when piped)
curl -L https://example.com/install.sh | sh
# ✔ Non-interactive (automation, CI, scripts)
curl -L https://example.com/install.sh | sh -s -- -y
```
<img width="1411" height="1505" alt="image"
src="https://github.com/user-attachments/assets/2d7b6734-ec3e-4be5-994f-6fb0b7e138f0"
/>1 file changed
+20
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
| |||
0 commit comments