[gnome-common] gnome-autogen.sh: Fix check if stdin is a tty



commit d98710d08e643fe2e2ba8d56540c350062cf0ecc
Author: Volker Sobek <reklov live com>
Date:   Sat Mar 22 18:39:19 2014 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]