mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-28 11:56:03 +00:00
fix: Improve interactive terminal detection (#1295)
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user