add quote

This commit is contained in:
Václav Uruba 2023-09-15 21:49:07 +02:00
parent 67afff8497
commit f3e9accde8
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

View File

@ -54,7 +54,7 @@ replace_embeds () {
file_embed="$SOURCEDIR/$DIR_EMBED/$(echo "${parts[0]}$SEPARATOR_EMBED" | sed -r "s/$REGEX_EMBED/\1/")"
params=("${parts[@]:1}")
if [ -f $file_embed ]; then
if [ -f "$file_embed" ]; then
expr_replace=""
for index in "${!params[@]}"; do
expr_replace+="s/\$$(($index+1))/${params[index]}/g;"