build: Update to marsh 0.7.2.

This commit is contained in:
Bradley Sepos 2018-01-29 15:59:23 -05:00
parent 8791d15267
commit 36e141a796
No known key found for this signature in database
GPG Key ID: DEADE2F57D42D9C7

10
marsh
View File

@ -6,7 +6,7 @@
# https://github.com/bradleysepos/marsh
NAME="marsh"
VERSION="0.7.1"
VERSION="0.7.2"
SELF="${BASH_SOURCE[0]}"
SELF_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P)
SELF_DIR="${SELF_DIR:-$(pwd)}"
@ -1579,15 +1579,7 @@ function build_template { # build_template dest_dir target_dir document templat
eval $(process_authors "SUBDOCUMENT_AUTHORS" "SUBDOCUMENT_Authors")
SUBDOCUMENT_AUTHORS=$(join_delimited ', ' ' and ' ', and ' ${SUBDOCUMENT_AUTHORS[@]})
# state
if [[ "${SUBDOCUMENT_State}" != "" ]]; then
# deprecated (no brackets)
# Key: foo, bar, baz
SUBDOCUMENT_State=(${SUBDOCUMENT_State//, /})
else
# YAML inline array
# Key: [ foo, bar, baz ]
eval $(flat_to_array "SUBDOCUMENT_State" "SUBDOCUMENT_State_")
fi
if [[ "${DOCUMENT_Type}" == "archive-atom" ]]; then
# document template
if [[ "${TEMPLATE_Template_Partials_Archive_Atom_Document:-}" != "" ]]; then