Skip to content

Commit d3fbc13

Browse files
fix special characters
1 parent c593ab0 commit d3fbc13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

append.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/"
4-
export JSON="$(echo $1 | minify --type json)"
4+
export JSON="$(echo $1 | minify --type json | sed 's/\\/\\\\/g')"
55
TEXT=$(perl -0pe 's/\/\*DATA\*\//\`$ENV{JSON}\`,\/\*DATA\*\//;' $2)
66
if [ $? -ne 0 ]; then
77
echo "Error in append.sh"

gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/"
4-
export JSON="$(echo $1 | minify --type json)"
4+
export JSON="$(echo $1 | minify --type json | sed 's/\\/\\\\/g')"
55

66
CSS=$(cat $DIR/style.css)
77
for C in $COLORS; do

0 commit comments

Comments
 (0)