mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-17 17:11:47 +00:00
fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
820421a9da
commit
b5489d7a2b
@ -557,7 +557,11 @@ buildAssets(){
|
|||||||
local PCT_TEMPLATE_PATTERNS=($(makePCTTemplateSEDPatterns "$@"))
|
local PCT_TEMPLATE_PATTERNS=($(makePCTTemplateSEDPatterns "$@"))
|
||||||
|
|
||||||
# assets...
|
# assets...
|
||||||
|
if [ -e "${assets_dir}" ] ; then
|
||||||
|
mkdir -p "${staging_dir}"
|
||||||
cp -R "${assets_dir}"/* "${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="$(\
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user