fix(release): tighten business code gate
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user