Unverified Commit 8ad91b71 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

buildHomeAssistantComponent: restrict manifest locations we consider (#432385)

parents 737e95ff 843b7107
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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