diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-30 18:15:20 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-30 18:15:20 (EDT) |
commit | 422e80c690b45df5764d2f454b8816f30b62e0e1 (patch) | |
tree | fd9d97fd272944bfe8ac177644f42c90120b9f39 | |
parent | 6b68a770ac9df965293f6d97bf83b099dc13aee1 (diff) | |
download | firman.sh-422e80c690b45df5764d2f454b8816f30b62e0e1.zip firman.sh-422e80c690b45df5764d2f454b8816f30b62e0e1.tar.gz firman.sh-422e80c690b45df5764d2f454b8816f30b62e0e1.tar.bz2 |
tools/shmin.sh: Handle backslashes
-rwxr-xr-x | tools/shmin.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/shmin.sh b/tools/shmin.sh index 2e402fa..f84e31d 100755 --- a/tools/shmin.sh +++ b/tools/shmin.sh @@ -143,6 +143,13 @@ minify() esac done fi + if [ "x${c}" = 'x\' ]; then + # Backslash + buffer="${buffer}${c}" + fgetc + buffer="${buffer}${c}" + continue + fi if [ "x${c}" = "x'" ]; then # Single quotes buffer="${buffer}${c}" |