mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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:
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 &&
|
||||
|
|
Loading…
Reference in a new issue