commit a7e3559b79721ce0220be54bd36bafed13d237a9
parent 6a7ad1949e3f9f74c52ae3e9bae96bb2f7549f4b
Author: Cem Keylan <cem@ckyln.com>
Date: Fri, 1 May 2020 12:43:30 +0300
kiss: fix ksh colour output
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kiss b/kiss
@@ -24,7 +24,7 @@ log() {
# '${3:-->}': If the 3rd argument is missing, set prefix to '->'.
# '${2:+\033[1;3Xm}': If the 2nd argument exists, set text style of '$1'.
printf '\033[1;33m%s \033[m%b%s\033[m %s\n' \
- "${3:-->}" "${2:+\033[1;36m}" "$1" "$2" >&2
+ "${3:-->}" "${2:+"\033[1;36m"}" "$1" "$2" >&2
}
die() {