cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit b5a50e71a4e25b05518cd41e06645ad90a8887db
parent c641673c17228c7b1e34b27f4392c2647e2d2381
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu,  7 May 2020 20:40:58 +0300

kiss: fix colour output

Diffstat:
Mkiss | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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