]> git.plutz.net Git - clickslide/commitdiff
portability: prevent crashes in bash HEAD
authorPaul Hänsch <paul@plutz.net>
Wed, 24 Apr 2019 18:33:54 +0000 (20:33 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 24 Apr 2019 18:33:54 +0000 (20:33 +0200)
clickslide.sh

index 980365f48ef04936424d8b5a8bc20e693ba0e406..e78f1c7a30c5568454bd1a8e28d3f1b0f816a4f6 100755 (executable)
@@ -33,7 +33,7 @@ base64() {
       pre="${tag%%url(*)*}"
       post="${tag#*url(*)}"
       file="${tag#${pre}url(}" file="${file%)$post}"
-      file="${file#"}" file="${file%"}"
+      file="${file#\"}" file="${file%\"}"
       echo Inlining Background Image "$file" >&2
       if [ -r "$file" ]; then
         tag="${pre}url('data:image/${file##*.};base64,$(base64 "$file")')${post}"