diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2007-11-01 17:01:58 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-02 01:37:34 +0300 |
commit | f31dfa604c83fd998f7b57942a7bac4defc8c435 (patch) | |
tree | 82af20a651f30c1d0c6044a2d8ebb528d9cb1bb8 /t/test-lib.sh | |
parent | 4340a813d007b592534de664d152d66417dbe809 (diff) |
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>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 714de6e575..603a8cd5e7 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -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 && |