diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2026-03-20 06:55:05 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-20 06:55:05 +0000 |
| commit | a8546710b09803b4b1be608233a19ef6cf19bf44 (patch) | |
| tree | 937f47681af742b148f988f480a06356d8a7c71a /install.sh | |
| parent | feat: add a small atuin label to the ai box (#3309) (diff) | |
| download | atuin-a8546710b09803b4b1be608233a19ef6cf19bf44.zip | |
fix: better tty check (#3313)
Our previous tty check could return true in environments where the tty
device node exists, but cannot actually be opened.
<!-- Thank you for making a PR! Bug fixes are always welcome, but if
you're adding a new feature or changing an existing one, we'd really
appreciate if you open an issue, post on the forum, or drop in on
Discord -->
## Checks
- [ ] I am happy for maintainers to push small adjustments to this PR,
to speed up the review cycle
- [ ] I have checked that there are no existing pull requests for the
same thing
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ for arg in "$@"; do done if [ "$ATUIN_NON_INTERACTIVE" != "yes" ]; then - if [ -t 0 ] || [ -c /dev/tty ]; then + if [ -t 0 ] || { true </dev/tty; } 2>/dev/null; then ATUIN_NON_INTERACTIVE="no" else ATUIN_NON_INTERACTIVE="yes" |
