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>
This commit is contained in:

committed by
Junio C Hamano

parent
4340a813d0
commit
f31dfa604c
@ -60,6 +60,7 @@ esac
|
||||
# . ./test-lib.sh
|
||||
|
||||
[ "x$TERM" != "xdumb" ] &&
|
||||
[ -t 1 ] &&
|
||||
tput bold >/dev/null 2>&1 &&
|
||||
tput setaf 1 >/dev/null 2>&1 &&
|
||||
tput sgr0 >/dev/null 2>&1 &&
|
||||
|
Reference in New Issue
Block a user