From 03b67b1a63976e3e21342ff22c3c0c5b94881ecc Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 16 Feb 2022 22:22:03 +0000 Subject: made ansi codfes in colors.sh be properly escaped --- src/generate_colors.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate_colors.sh b/src/generate_colors.sh index 3d2ba93..b9e862d 100644 --- a/src/generate_colors.sh +++ b/src/generate_colors.sh @@ -31,7 +31,7 @@ append_header() { } append_sh() { - echo "export $1=$2" >> $shlib + printf "export %s=$'%s'\n" $1 $(echo $2 | sed -rn "s/\"(.*)\"/\1/p") >> $shlib } while IFS= read -r line; do -- cgit v1.2.1