diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-20 12:58:57 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-20 12:58:57 -0800 |
commit | 395a50cbc6b56493bf4dbe5185923d8bff1b3156 (patch) | |
tree | ba72fcaa2df7e6458379da117e67ba53c68954ab | |
parent | 8695dd1dc3ac4fcf19117be53bc0df804f2d75f1 (diff) | |
parent | c12956aa50497f5849c6c477621a5d0cc0b1d4fd (diff) | |
download | mate-common-395a50cbc6b56493bf4dbe5185923d8bff1b3156.tar.bz2 mate-common-395a50cbc6b56493bf4dbe5185923d8bff1b3156.tar.xz |
Merge pull request #13 from infirit/master
Fix tty detection for terminal codes.
-rw-r--r-- | macros/mate-autogen | 2 |
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 |