Update ha_entrypoint.sh

This commit is contained in:
Alexandre
2025-07-20 04:44:58 +02:00
committed by GitHub
parent ac8295c797
commit 7fc4e8f721

View File

@@ -90,9 +90,9 @@ done
sed -i "s/bashio::exit.nok/return 1/g" "$SERVICE"
sed -i "s/bashio::exit.ok/return 0/g" "$SERVICE"
# shellcheck disable=SC1090
source "$SERVICE" || echo -e "\033[0;31mError\033[0m : $SERVICE exiting $?" & true
/."$SERVICE" & true || echo -e "\033[0;31mError\033[0m : $SERVICE exiting $?"
else
"$SERVICE" || echo -e "\033[0;31mError\033[0m : $SERVICE exiting $?" & true
"$SERVICE" & true || echo -e "\033[0;31mError\033[0m : $SERVICE exiting $?"
fi
# Cleanup