From b930df4b92e811caa6972f11398fc5e6fa5159d5 Mon Sep 17 00:00:00 2001 From: BarbUk Date: Mon, 28 Oct 2019 15:06:05 +0400 Subject: [PATCH] Rename bashdown2 function with bashdown_simple --- snippy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"