@matheusbsbs / matheus-bagliano / commits / f31dfa604c
Fork 0

Do no colorify test output if stdout is not a terminal

like when the output is redirected into a file in a cron job. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alex Riesen committed Nov 1, 2007 at 15:01 UTC f31dfa604c83fd998f7b57942a7bac4defc8c435
1 file changed +1
t/test-lib.sh
+1
@@ -60,6 +60,7 @@ esac
60 # . ./test-lib.sh
61
62 [ "x$TERM" != "xdumb" ] &&
63 + [ -t 1 ] &&
64 tput bold >/dev/null 2>&1 &&
65 tput setaf 1 >/dev/null 2>&1 &&
66 tput sgr0 >/dev/null 2>&1 &&