From d98710d08e643fe2e2ba8d56540c350062cf0ecc Mon Sep 17 00:00:00 2001 From: Volker Sobek Date: Sat, 22 Mar 2014 18:39:19 +0100 Subject: gnome-autogen.sh: Fix check if stdin is a tty Commit 7f977b021462 introduced a check if stdin is ins't a tty, and prevent printing terminal codes in this case. But the check was wrong and always failed. https://bugzilla.gnome.org/show_bug.cgi?id=726892 --- macros2/gnome-autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh index bdd5f91..d361c8e 100644 --- a/macros2/gnome-autogen.sh +++ b/macros2/gnome-autogen.sh @@ -34,7 +34,7 @@ case `echo -n x` in esac # some terminal codes ... -if tty < /dev/null 1>/dev/null 2>&1; then +if tty 1>/dev/null 2>&1; then boldface="`tput bold 2>/dev/null`" normal="`tput sgr0 2>/dev/null`" else -- cgit v1.2.1