Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #38
- Loading branch information