diff options
author | EuAndreh <eu@euandre.org> | 2022-06-01 20:06:09 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-06-01 20:06:09 -0300 |
commit | c961635f5c5dacc0129d9903ffed989eb4ce43a6 (patch) | |
tree | 17c28cf3bea63fe0baa9c71cec02beda2264748c /src | |
parent | Start building pastebins with dynamic.mk (diff) | |
download | euandre.org-c961635f5c5dacc0129d9903ffed989eb4ce43a6.tar.gz euandre.org-c961635f5c5dacc0129d9903ffed989eb4ce43a6.tar.xz |
src/development/frontmatter-env.sh: Use single quote for heredoc marker
Diffstat (limited to '')
-rwxr-xr-x | src/development/frontmatter-env.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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(": ") |