Update ha_entrypoint.sh

This commit is contained in:
Alexandre
2025-08-01 16:22:27 +02:00
committed by GitHub
parent eb4d4d19dc
commit ac2d872631

View File

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