aboutsummaryrefslogtreecommitdiff
path: root/src/development/frontmatter-env.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-06-01 20:06:09 -0300
committerEuAndreh <eu@euandre.org>2022-06-01 20:06:09 -0300
commitc961635f5c5dacc0129d9903ffed989eb4ce43a6 (patch)
tree17c28cf3bea63fe0baa9c71cec02beda2264748c /src/development/frontmatter-env.sh
parentStart building pastebins with dynamic.mk (diff)
downloadeuandre.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-xsrc/development/frontmatter-env.sh4
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(": ")