diff --git a/sample-rapp-generator/generate.sh b/sample-rapp-generator/generate.sh index b7118a0..e3d0e6e 100755 --- a/sample-rapp-generator/generate.sh +++ b/sample-rapp-generator/generate.sh @@ -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