X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=clickslide.sh;h=e78f1c7a30c5568454bd1a8e28d3f1b0f816a4f6;hb=c461819f9bb1a3b13246bd042c3c72ac54ceb929;hp=5c9d155a57da709d6534d588f2b8c7092f9da458;hpb=a0aeeb7cfdef73bbf04b28a90d244fab533d5e3a;p=clickslide diff --git a/clickslide.sh b/clickslide.sh index 5c9d155..e78f1c7 100755 --- a/clickslide.sh +++ b/clickslide.sh @@ -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}" @@ -55,6 +55,7 @@ base64() { case $tag in *\*|\*\) # Inline styles into head printf '%s + %s' "${tag#*}"