diff --git a/snippy b/snippy index 8893b44..413b52d 100755 --- a/snippy +++ b/snippy @@ -83,7 +83,7 @@ bashdown() { # Simplified version of bashdown, use echo and bash var search and replace # Better handling of symbol char bashdown_simple() { - while IFS= read -r line; do + while IFS= read -r line || [[ -n "$line" ]]; do line="$(eval "echo \"${line//\"/\\\"}\"")" echo "$line" done