add quote
This commit is contained in:
parent
67afff8497
commit
f3e9accde8
2
mige.sh
2
mige.sh
@ -54,7 +54,7 @@ replace_embeds () {
|
|||||||
file_embed="$SOURCEDIR/$DIR_EMBED/$(echo "${parts[0]}$SEPARATOR_EMBED" | sed -r "s/$REGEX_EMBED/\1/")"
|
file_embed="$SOURCEDIR/$DIR_EMBED/$(echo "${parts[0]}$SEPARATOR_EMBED" | sed -r "s/$REGEX_EMBED/\1/")"
|
||||||
params=("${parts[@]:1}")
|
params=("${parts[@]:1}")
|
||||||
|
|
||||||
if [ -f $file_embed ]; then
|
if [ -f "$file_embed" ]; then
|
||||||
expr_replace=""
|
expr_replace=""
|
||||||
for index in "${!params[@]}"; do
|
for index in "${!params[@]}"; do
|
||||||
expr_replace+="s/\$$(($index+1))/${params[index]}/g;"
|
expr_replace+="s/\$$(($index+1))/${params[index]}/g;"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user