From 7f3ca9907f0479a3da9d2c8eb5ecf9dccd4917be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 24 Apr 2019 20:33:54 +0200 Subject: [PATCH] portability: prevent crashes in bash --- clickslide.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clickslide.sh b/clickslide.sh index 980365f..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}" -- 2.39.2