mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-06 06:06:23 +02:00
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:
committed by
GitHub
parent
464c7362d8
commit
9c4b381b8e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user