Commit d98710d0 authored by Volker Sobek's avatar Volker Sobek Committed by Colin Walters

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

Commit 7f977b02 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
parent b6f09948
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment