From c961635f5c5dacc0129d9903ffed989eb4ce43a6 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 1 Jun 2022 20:06:09 -0300 Subject: src/development/frontmatter-env.sh: Use single quote for heredoc marker --- src/development/frontmatter-env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/development/frontmatter-env.sh') diff --git a/src/development/frontmatter-env.sh b/src/development/frontmatter-env.sh index efe4f65..f79ad50 100755 --- a/src/development/frontmatter-env.sh +++ b/src/development/frontmatter-env.sh @@ -57,7 +57,7 @@ done shift $((OPTIND - 1)) DELIM="$(uuid)" -awk -vDELIM="$DELIM" -F: ' +awk -vDELIM="$DELIM" -vQUOTE="'" -F: ' BEGIN { separator = 0 } @@ -74,7 +74,7 @@ awk -vDELIM="$DELIM" -F: ' /^$/ { next } { - printf "%s=\"$(\n\tcat <<-\"%s\"\n\t\t", $1, DELIM + printf "%s=\"$(\n\tcat <<-%s%s%s\n\t\t", $1, QUOTE, DELIM, QUOTE base_index = 1 offset = base_index + length($1) + length(": ") -- cgit v1.2.3