diff --git a/module-assets/ci/license_checker.sh b/module-assets/ci/license_checker.sh index 0f1f74e7..7de6b52d 100755 --- a/module-assets/ci/license_checker.sh +++ b/module-assets/ci/license_checker.sh @@ -7,11 +7,15 @@ if git remote -v | head -n 1 | grep -q "github.ibm"; then exit 0 fi + # ensure LICENSE file exists if .tf file is detected in root directory -count=$(find ./*.tf 2>/dev/null | wc -l | xargs) + +count=$(find ./ -type f \( -name *.tf -o -name ibm_catalog.json \) 2>/dev/null | wc -l | xargs) if [ "$count" != 0 ]; then if [[ ! -f "LICENSE" ]]; then echo "Required LICENSE file is missing. Please add it and try again." exit 1 fi fi + +