From cf14b660b289878b0a6e5a406e6fccd58e7026d6 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 2 Dec 2014 11:11:49 +0100 Subject: mate-autogen: Fix check if stdin is a tty Use the simpler gnome-common check from commit: d98710d08e643fe2e2ba8d56540c350062cf0ecc --- macros/mate-autogen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/mate-autogen b/macros/mate-autogen index 0e8f986..c7bad98 100644 --- a/macros/mate-autogen +++ b/macros/mate-autogen @@ -51,7 +51,7 @@ case `echo -n x` in esac # some terminal codes ... -if tty <&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