Update ha_entrypoint.sh

This commit is contained in:
Alexandre
2025-08-01 16:06:43 +02:00
committed by GitHub
parent a3c8d24b1d
commit 275a5f69c2

View File

@@ -40,7 +40,7 @@ EOF
chmod +x "$tmp"
# Run the probe and check for at least one digit in the output
out="$("$tmp" 2>/dev/null || true)"
out="$(exec "$tmp" 2>/dev/null || true)"
if printf '%s' "$out" | grep -qE '[0-9]'; then
shebang="$candidate"
echo "Valid shebang: $shebang (bashio::addon.version -> $out)"