fix: Improve interactive terminal detection (#1295)

This commit is contained in:
Kroese
2026-07-17 22:45:07 +02:00
committed by GitHub
parent 1eb0db66ba
commit dcdf5e5293
+1 -3
View File
@@ -31,9 +31,7 @@ isAmdCpu() {
interactive() {
[ -t 1 ] &&
[ -c /dev/tty ] &&
: 2>/dev/null </dev/tty >/dev/tty
[ -t 0 ] && : 2>/dev/null </dev/tty >/dev/tty
}