Rename bashdown2 function with bashdown_simple
This commit is contained in:
parent
71e9e29929
commit
b930df4b92
4
snippy
4
snippy
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user