From a8546710b09803b4b1be608233a19ef6cf19bf44 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Fri, 20 Mar 2026 06:55:05 +0000 Subject: 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. ## 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 --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/null; then ATUIN_NON_INTERACTIVE="no" else ATUIN_NON_INTERACTIVE="yes" -- cgit v1.3.1