fix(maintainerr): add warning when bashio library is not found

Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/d5bff0a8-62ba-4564-a4fc-74c87d8b0d55

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-03 13:07:30 +00:00
committed by GitHub
parent 464c7362d8
commit 9c4b381b8e

View File

@@ -8,13 +8,18 @@ set -e
###############################################################################
# ─── Source bashio library so init scripts can use bashio:: functions ─────────
_bashio_loaded=false
for _f in /usr/lib/bashio/bashio /usr/lib/bashio/bashio.sh; do
if [ -f "$_f" ]; then
# shellcheck disable=SC1090
source "$_f"
_bashio_loaded=true
break
fi
done
if [ "$_bashio_loaded" = false ]; then
echo "[Maintainerr] WARNING: bashio library not found; init scripts using bashio functions will fail"
fi
# ─── Run cont-init.d scripts ─────────────────────────────────────────────────
if [ -d /etc/cont-init.d ]; then