Files
stack/tools/e2e-gateway-verify-supported.sh
T
f10-coderandMos 3a1203b2f8
ci/woodpecker/push/publish Pipeline failed
ci/woodpecker/push/ci Pipeline was successful
fix(shell): remove runtime early-exit pipe hazards (#1105)
Co-authored-by: f10-coder <[email protected]>
2026-08-07 09:38:37 +00:00

11 lines
425 B
Bash

#!/usr/bin/env bash
# Exit 0 only when the capability probe itself succeeds and advertises verify.
# A failed help command and a successful response without verify are both
# unsupported, matching the historical e2e-install-test.sh conditional.
set -uo pipefail
gateway_help_rc=0
gateway_help="$(mosaic gateway --help 2>&1)" || gateway_help_rc=$?
[[ "$gateway_help_rc" -eq 0 ]] || exit 1
grep -q 'verify' <<<"$gateway_help"