aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2026-03-20 06:55:05 +0000
committerGitHub <noreply@github.com>2026-03-20 06:55:05 +0000
commita8546710b09803b4b1be608233a19ef6cf19bf44 (patch)
tree937f47681af742b148f988f480a06356d8a7c71a /install.sh
parentfeat: add a small atuin label to the ai box (#3309) (diff)
downloadatuin-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-xinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 659b652b..0dc0419f 100755
--- a/install.sh
+++ b/install.sh
@@ -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"