diff options
author | merakor <cem@ckyln.com> | 2020-05-07 17:40:57 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-07 17:40:57 +0000 |
commit | 0fc522bd810e4fe017e9a8eaf4e0fb782c7a5b2b (patch) | |
tree | 3014c0914eeb5519e19493774b685a088ce77667 /kiss | |
parent | 430e52072da6e151b0335d1cedf2723f9bafa450 (diff) | |
download | cpt-0fc522bd810e4fe017e9a8eaf4e0fb782c7a5b2b.tar.gz |
kiss: fix colour output
FossilOrigin-Name: ec1daf16b1621468b0976dd8a82a7795de86fce88f52cb9aeadf257b0ad29f46
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1581,7 +1581,7 @@ main() { # always enable colour escapes, and if set to 0 it will # always disable colour escapes. if [ "$KISS_COLOUR" = 1 ]; then colour=1 - elif [ "$KISS_COLOUR" = 0 ] || [ -t 0 ]; then + elif [ "$KISS_COLOUR" = 0 ] || ! [ -t 1 ]; then log() { printf '%s %s %s\n' "${3:-->}" "$1" "$2" >&2 ;} else colour=1 fi |