From 130949bd903bc170ca0502dd7968de8943225c5a 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/clickslide.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clickslide/clickslide.sh b/clickslide/clickslide.sh index 980365f..e78f1c7 100755 --- a/clickslide/clickslide.sh +++ b/clickslide/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