From 0fc522bd810e4fe017e9a8eaf4e0fb782c7a5b2b Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 7 May 2020 17:40:57 +0000 Subject: kiss: fix colour output FossilOrigin-Name: ec1daf16b1621468b0976dd8a82a7795de86fce88f52cb9aeadf257b0ad29f46 --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 1c75e3c..ddf6b82 100755 --- a/kiss +++ b/kiss @@ -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 -- cgit v1.2.3