From 422e80c690b45df5764d2f454b8816f30b62e0e1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 30 Oct 2015 18:15:20 -0400 Subject: tools/shmin.sh: Handle backslashes --- (limited to 'tools') 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}" -- cgit v0.9.1