diff --git a/utility/embed-static.sh b/utility/embed-static.sh index bd6bc9302..d0f1f291b 100755 --- a/utility/embed-static.sh +++ b/utility/embed-static.sh @@ -21,9 +21,9 @@ do find . -type f \! -name \*.map \! -name bootstrap.js \! -name bootstrap-theme.css \! -name bootstrap.css | while read file do name=$(echo "${file}"|sed 's|\.\/||') - echo "\"$name\": {" - gzip -9 -c "${file}" | xxd -p |sed 's/\(..\)/0x\1, /g' - echo "}," + echo -n "\"$name\": []byte(\"" + gzip -9 -c "${file}" | xxd -p | tr -d '\n' | sed 's/\(..\)/\\x\1/g' + echo "\")," echo done echo "},"