fix(shell): preserve pipeline verdict semantics
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
2026-08-07 04:24:08 -05:00
parent 16ea503b2d
commit d60b4a22e6
6 changed files with 127 additions and 13 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/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"