aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-07 17:40:57 +0000
committermerakor <cem@ckyln.com>2020-05-07 17:40:57 +0000
commit0fc522bd810e4fe017e9a8eaf4e0fb782c7a5b2b (patch)
tree3014c0914eeb5519e19493774b685a088ce77667
parent430e52072da6e151b0335d1cedf2723f9bafa450 (diff)
downloadcpt-0fc522bd810e4fe017e9a8eaf4e0fb782c7a5b2b.tar.gz
kiss: fix colour output
FossilOrigin-Name: ec1daf16b1621468b0976dd8a82a7795de86fce88f52cb9aeadf257b0ad29f46
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
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