mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-28 11:05:40 +01:00
16 lines
439 B
Bash
Executable File
16 lines
439 B
Bash
Executable File
#!/usr/bin/env bashio
|
|
declare -a integrations
|
|
declare integration_path
|
|
|
|
shopt -s globstar nullglob
|
|
for manifest in **/manifest.json; do
|
|
manifest_path=$(realpath "${manifest}")
|
|
integrations+=(--integration-path "${manifest_path%/*}")
|
|
done
|
|
|
|
if [[ ${#integrations[@]} -eq 0 ]]; then
|
|
bashio::exit.nok "No integrations found!"
|
|
fi
|
|
|
|
cd /usr/src/homeassistant
|
|
exec python3 -m script.hassfest --action validate "${integrations[@]}" "$@" |