summaryrefslogtreecommitdiff
path: root/macros/mate-autogen
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-20 12:58:57 -0800
committerStefano Karapetsas <[email protected]>2014-01-20 12:58:57 -0800
commit395a50cbc6b56493bf4dbe5185923d8bff1b3156 (patch)
treeba72fcaa2df7e6458379da117e67ba53c68954ab /macros/mate-autogen
parent8695dd1dc3ac4fcf19117be53bc0df804f2d75f1 (diff)
parentc12956aa50497f5849c6c477621a5d0cc0b1d4fd (diff)
downloadmate-common-395a50cbc6b56493bf4dbe5185923d8bff1b3156.tar.bz2
mate-common-395a50cbc6b56493bf4dbe5185923d8bff1b3156.tar.xz
Merge pull request #13 from infirit/master
Fix tty detection for terminal codes.
Diffstat (limited to 'macros/mate-autogen')
-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