enter: fix boolean logic on tty use

This commit is contained in:
89luca89
2022-04-04 22:23:35 +02:00
parent e6f41a3fd3
commit f1ed2c50a3
+1 -1
View File
@@ -241,7 +241,7 @@ generate_command() {
# To work around this, --headless let's you skip these 2 flags and make it
# work in tty-less situations.
# Disable tty also if we're NOT in a tty (test -t 0).
if [ "${headless}" -eq 0 ] || [ -t 0 ]; then
if [ "${headless}" -eq 0 ] && [ -t 0 ]; then
result_command="${result_command}
--tty"
fi