diff options
author | davidovski <david@davidovski.xyz> | 2022-02-16 22:22:03 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-16 22:22:03 +0000 |
commit | 03b67b1a63976e3e21342ff22c3c0c5b94881ecc (patch) | |
tree | 8519d8e44381c27a6aee2168bc52cdcf4ae56c6b /src/generate_colors.sh | |
parent | 1bb2575cdea0ec9bddd63eb668feb699c1226c3c (diff) |
made ansi codfes in colors.sh be properly escaped
Diffstat (limited to 'src/generate_colors.sh')
-rw-r--r-- | src/generate_colors.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |