diff --git a/.github/scripts/build-catalog.sh b/.github/scripts/build-catalog.sh index 340feeabf87..08f957d2ba5 100755 --- a/.github/scripts/build-catalog.sh +++ b/.github/scripts/build-catalog.sh @@ -77,7 +77,9 @@ patch_apps() { cat ${target}/Chart.yaml | yq '.annotations."truecharts.org/catagories"' -r >> catalog/${train}/${chartname}/item.yaml # Generate screenshots - screenshots=$(ls ${target}/screenshots) + if [[ -d "${target}/screenshots" ]]; then + screenshots=$(ls ${target}/screenshots) + fi if [[ -n $screenshots ]]; then echo "screenshots:" >> catalog/${train}/${chartname}/item.yaml for screenshot in $screenshots; do