fix(release): tighten business code gate

This commit is contained in:
2026-07-14 15:30:08 +08:00
parent 7629a1b80e
commit 64f369eff0
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ require_remote_business_success() {
local url="$2"
local body
body="$(curl -fsS --max-time 15 "$url")" || fail "$label HTTP check failed: $url"
if ! printf '%s' "$body" | LC_ALL=C grep -Eq '"code"[[:space:]]*:[[:space:]]*200([[:space:]]*[,}])'; then
if ! printf '%s' "$body" | LC_ALL=C grep -Eq '^[[:space:]]*\{[[:space:]]*"code"[[:space:]]*:[[:space:]]*200([[:space:]]*[,}])'; then
fail "$label business check failed: $url"
fi
echo "$label=200 $url"