The color codes mess up less and log files. Signed-off-by: Mikko Rapeli <mikko.rapeli@xxxxxx> --- 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="[1;31m" -GREEN="[1;32m" -COL_RESET="[0;m" +if [ -t 1 ]; then + RED="[1;31m" + GREEN="[1;32m" + COL_RESET="[0;m" +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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html