[PATCH 01/12] configure.sh: use colors only with terminal

Mikko Rapeli <[email protected]>
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
The color codes mess up less and log files.

Signed-off-by: Mikko Rapeli <[email protected]>
---
 configure.sh |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/configure.sh b/configure.sh
index 3b3823f..d7f16cb 100755
--- a/configure.sh
+++ b/configure.sh
@@ -2,9 +2,11 @@
 
 DEVEL=0
 
-RED=""
-GREEN=""
-COL_RESET=""
+if [ -t 1 ]; then
+	RED=""
+	GREEN=""
+	COL_RESET=""
+fi
 
 MISSING_DEFS=0
 
-- 
1.7.9.5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.