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

View File

@ -557,7 +557,11 @@ buildAssets(){
local PCT_TEMPLATE_PATTERNS=($(makePCTTemplateSEDPatterns "$@")) local PCT_TEMPLATE_PATTERNS=($(makePCTTemplateSEDPatterns "$@"))
# assets... # assets...
cp -R "${assets_dir}"/* "${staging_dir}"/ if [ -e "${assets_dir}" ] ; then
mkdir -p "${staging_dir}"
cp -R "${assets_dir}"/* "${staging_dir}"/
fi
# template dir... # template dir...
local TEMPLATES=($(find "$template_dir" -type f)) local TEMPLATES=($(find "$template_dir" -type f))
for file in "${TEMPLATES[@]}" ; do for file in "${TEMPLATES[@]}" ; do
@ -571,6 +575,7 @@ buildAssets(){
| expandTemplate \ | expandTemplate \
> "${staging_dir}/${file}" > "${staging_dir}/${file}"
done done
# special case: NOTES.md... # special case: NOTES.md...
if [ -z "$DESCRIPTION" ] && [ -e "$NOTES" ] ; then if [ -z "$DESCRIPTION" ] && [ -e "$NOTES" ] ; then
DESCRIPTION="$(\ DESCRIPTION="$(\