Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-20 21:46:21 +03:00
parent f5a8396abe
commit eba0a32812

View File

@ -551,10 +551,6 @@ buildAssets(){
local assets_dir=${ASSETS_DIR:-assets}
local staging_dir=${STAGING_DIR:-staging}
if ! [ -e $template_dir ] ; then
return
fi
local PCT_TEMPLATE_PATTERNS=($(makePCTTemplateSEDPatterns "$@"))
# assets...
@ -564,6 +560,7 @@ buildAssets(){
fi
# template dir...
if [ -e $template_dir ] ; then
local TEMPLATES=($(find "$template_dir" -type f))
for file in "${TEMPLATES[@]}" ; do
file=${file#${template_dir}}
@ -576,6 +573,7 @@ buildAssets(){
| expandTemplate \
> "${staging_dir}/${file}"
done
fi
# special case: NOTES.md...
if [ -z "$DESCRIPTION" ] && [ -e "$NOTES" ] ; then