mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-17 09:01:49 +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 "$@"))
|
||||
|
||||
# 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...
|
||||
local TEMPLATES=($(find "$template_dir" -type f))
|
||||
for file in "${TEMPLATES[@]}" ; do
|
||||
@ -571,6 +575,7 @@ buildAssets(){
|
||||
| expandTemplate \
|
||||
> "${staging_dir}/${file}"
|
||||
done
|
||||
|
||||
# special case: NOTES.md...
|
||||
if [ -z "$DESCRIPTION" ] && [ -e "$NOTES" ] ; then
|
||||
DESCRIPTION="$(\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user