summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Sobek <reklov@live.com>2014-03-22 18:39:19 +0100
committerColin Walters <walters@verbum.org>2014-03-22 14:10:33 -0400
commitd98710d08e643fe2e2ba8d56540c350062cf0ecc (patch)
tree3b47512c6010af1edc94f71dea0b996695885413
parentb6f099488526288ad0ab1b2061304441df0b2466 (diff)
downloadgnome-common-d98710d08e643fe2e2ba8d56540c350062cf0ecc.tar.gz
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
-rw-r--r--macros2/gnome-autogen.sh2
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