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:
parent
658178b0aa
commit
843b710779
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user