Commit 0a0b187
committed
Fix false-positive check for tty in flatpak
When there is absolutely no tty set at all (e.g. in a shell spawned by
a flatpak), tty prints 'not a tty', which matches `tty | grep "tty"`.
Luckily `tty` also returns `1`, so we can do a two-stage check instead.
This fixes #381 parent 4b611b7 commit 0a0b187
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
0 commit comments