* fix regression due to sed's imporper regexp handling
This commit is contained in:
parent
4ce52292aa
commit
7f1838372a
|
@ -41,7 +41,7 @@ function render() {
|
||||||
local _key="\\?${key/?/}"
|
local _key="\\?${key/?/}"
|
||||||
|
|
||||||
local subtemplate=$(mktemp)
|
local subtemplate=$(mktemp)
|
||||||
echo 's'$'\02''\{\{start '"$_key"'\}\}((.*)\{\{else '"$_key"'\}\}.*\{\{end '"$_key"'\}\}|(.*)\{\{end '"$_key"'\}\})'$'\02''\2'$'\02'';' >> "$subtemplate"
|
echo 's'$'\02''\{\{start '"$_key"'\}\}((.*)\{\{else '"$_key"'\}\}.*\{\{end '"$_key"'\}\}|(.*)\{\{end '"$_key"'\}\})'$'\02''\2\3'$'\02'';' >> "$subtemplate"
|
||||||
cat <<< $(cat "$subtemplate" "$tmp") > "$tmp" # call that cat abuse
|
cat <<< $(cat "$subtemplate" "$tmp") > "$tmp" # call that cat abuse
|
||||||
|
|
||||||
elif [[ "${ref[$key]}" != "" ]]; then
|
elif [[ "${ref[$key]}" != "" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue