summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-01-20 21:55:42 +0100
committerinfirit <[email protected]>2014-01-20 21:56:40 +0100
commitc12956aa50497f5849c6c477621a5d0cc0b1d4fd (patch)
treeba72fcaa2df7e6458379da117e67ba53c68954ab
parent8695dd1dc3ac4fcf19117be53bc0df804f2d75f1 (diff)
downloadmate-common-c12956aa50497f5849c6c477621a5d0cc0b1d4fd.tar.bz2
mate-common-c12956aa50497f5849c6c477621a5d0cc0b1d4fd.tar.xz
Fix tty detection for terminal codes.
-rw-r--r--macros/mate-autogen2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/mate-autogen b/macros/mate-autogen
index cda8d3a..1874ac6 100644
--- a/macros/mate-autogen
+++ b/macros/mate-autogen
@@ -51,7 +51,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