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

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to