core/script/hassfest/docker/entrypoint.sh
Robert Resch 397198c6d0
Optimize hassfest image (#124855)
* Optimize hassfest docker image

* Adjust CI

* Use dynamic uv version

* Remove workaround
2024-08-30 13:09:10 +02:00

19 lines
454 B
Bash
Executable File

#!/bin/sh
integrations=""
integration_path=""
# Enable recursive globbing using find
for manifest in $(find . -name "manifest.json"); do
manifest_path=$(realpath "${manifest}")
integrations="$integrations --integration-path ${manifest_path%/*}"
done
if [ -z "$integrations" ]; then
echo "Error: No integrations found!"
exit 1
fi
cd /usr/src/homeassistant || exit 1
exec python3 -m script.hassfest --action validate $integrations "$@"