mirror of
https://github.com/sigmasternchen/shinden
synced 2025-03-16 00:08:53 +00:00
fixed problem with single quotes
This commit is contained in:
parent
6b398f2571
commit
0964fdc24f
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ template() {
|
|||
|
||||
_dumpRawBuffer() {
|
||||
# {{ can not occour in raw _buffer
|
||||
_script+="printf '%s' $(printf "{{%s{{" "$_buffer" | sed "s/'/\\\'/g" | sed "s/{{/'/g")"
|
||||
_script+="printf '%s' $(printf "{{%s{{" "$_buffer" | sed "s/'/'\"'\"'/g" | sed "s/{{/'/g")"
|
||||
_script+=$'\n'
|
||||
_buffer=""
|
||||
}
|
||||
|
@ -90,6 +90,6 @@ template() {
|
|||
printf '%s' "$@"
|
||||
}
|
||||
|
||||
#echo "$_script"
|
||||
echo "$_script" >&2
|
||||
eval "$_script"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue