Skip to content

Commit

Permalink
Fix sample rapp generator to support helm artifact alone rApps
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aravindtga committed Jul 2, 2024
1 parent db31182 commit a1f5830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample-rapp-generator/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if [ -d "$DIRECTORY" ]; then
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
Expand Down

0 comments on commit a1f5830

Please sign in to comment.