buildHomeAssistantComponent: restrict manifest locations we consider

A repo can contain many more manifest.json files, as demonstrated by the
hacs component.

Fixes: #429790
This commit is contained in:
Martin Weinelt 2025-08-10 01:25:31 +02:00
parent 658178b0aa
commit 843b710779
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -13,7 +13,13 @@ function manifestCheckPhase() {
args+=" --ignore-version-requirement ${package}"
done
readarray -d '' manifests < <(find . -type f -name "manifest.json" -print0)
readarray -d '' manifests < <(
find . -type f \( \
-path ./manifest.json \
-o -path './custom_components/*/manifest.json' \
-o -path './custom_components/*/integrations/*/manifest.json' \
\) -print0
)
if [ "${#manifests[@]}" -gt 0 ]; then
# shellcheck disable=SC2068