From f1ed2c50a3e1c37dd4951ee431e29b7a3deeda33 Mon Sep 17 00:00:00 2001 From: 89luca89 Date: Mon, 4 Apr 2022 21:47:09 +0200 Subject: [PATCH] enter: fix boolean logic on tty use --- distrobox-enter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrobox-enter b/distrobox-enter index 0da13e18..244191c9 100755 --- a/distrobox-enter +++ b/distrobox-enter @@ -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