build: Update to marsh 0.7.4.

Fix copying all template asset types.
This commit is contained in:
Bradley Sepos 2018-05-25 02:00:50 -04:00
parent 5f1a9a6ac3
commit 9a2098ce74
No known key found for this signature in database
GPG Key ID: DEADE2F57D42D9C7

4
marsh
View File

@ -6,7 +6,7 @@
# https://github.com/bradleysepos/marsh
NAME="marsh"
VERSION="0.7.3"
VERSION="0.7.4"
SELF="${BASH_SOURCE[0]}"
SELF_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P)
SELF_DIR="${SELF_DIR:-$(pwd)}"
@ -1804,7 +1804,7 @@ function build_target { # build_target dest_dir target advanced_nav templates_d
[[ $? -ne 0 ]] && return 1
TEMPLATE_META_VARS=$(echo "${TEMPLATE_META}" | get_variables)
eval "${TEMPLATE_META}"
for ASSET in ${TEMPLATE_ASSETS_FONTS[@]} ${TEMPLATE_ASSETS_STYLES[@]} ${TEMPLATE_ASSETS_SCRIPTS[@]}; do
for ASSET in ${TEMPLATE_ASSETS_FONTS[@]} ${TEMPLATE_ASSETS_STYLES[@]} ${TEMPLATE_ASSETS_SCRIPTS[@]} ${TEMPLATE_ASSETS_IMAGES[@]} ${TEMPLATE_ASSETS_AUDIO[@]} ${TEMPLATE_ASSETS_VIDEO[@]} ${TEMPLATE_ASSETS_DOCUMENTS[@]} ${TEMPLATE_ASSETS_BINARIES[@]} ${TEMPLATE_ASSETS_OTHER[@]}; do
ASSET="${ASSET%\?*}"
if [[ -d "${TEMPLATES_DIR}/${TEMPLATES[$I]}/${ASSET}" ]]; then
mkdir -p "${DEST_DIR}/${TARGET_DIR}/${ASSET}"