diff --git a/snippy b/snippy index 5f778c3..9022d1f 100755 --- a/snippy +++ b/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"