Rename bashdown2 function with bashdown_simple

This commit is contained in:
BarbUk 2019-10-28 15:06:05 +04:00
parent 71e9e29929
commit b930df4b92

4
snippy
View File

@ -69,7 +69,7 @@ bashdown() {
# Simplified version of bashdown, use echo and bash var search and replace
# Better handling of symbol char
bashdown2() {
bashdown_simple() {
while IFS= read -r line; do
line="$(eval "echo \"${line//\"/\\\"}\"")"
echo "$line"
@ -138,7 +138,7 @@ run() {
# default action
else
content="$( bashdown2 < "${snippets_directory}/${snippet}" )"
content="$( bashdown_simple < "${snippets_directory}/${snippet}" )"
fi
printf "%s" "$content" > "$tmpfile"