rApp package can have the artifact alone or the files which should create an artifact. This fixes the case when there is a helm artifact alone provided.
Issue-ID: NONRTRIC-1019
Change-Id: I8bc96ccd07c1bf0c5d0ceab06a77c80dced3552d
Signed-off-by: aravind.est <aravindhan.a@est.tech>
checkHelmPackage
rm -f $PACKAGENAME 2> /dev/null
pushd $DIRECTORY
- zip -r ../$PACKAGENAME * $(printf " -x %s" "${EXCLUDE_DIRS[@]}")
+ zip -r ../$PACKAGENAME * $([ ${#EXCLUDE_DIRS[@]} -gt 0 ] && printf " -x %s" "${EXCLUDE_DIRS[@]}")
popd
echo -e "rApp package $PACKAGENAME generated."
else