Skip to content

Commit 49e48d9

Browse files
fix(ci): handle sagefs --help non-zero exit code
sagefs --help returns exit code 1 (Argu convention), which kills the pipeline under bash set -eo pipefail. Capture help text first with || true, then grep the captured string. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4e1e8c6 commit 49e48d9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ jobs:
7878
run: |
7979
export PATH="$HOME/.dotnet/tools:$PATH"
8080
# Check if sagefs supports --supervised (required for E2E)
81-
if sagefs --help 2>&1 | grep -q 'supervised'; then
81+
HELP_TEXT=$(sagefs --help 2>&1 || true)
82+
if echo "$HELP_TEXT" | grep -q 'supervised'; then
8283
echo "sagefs supports --supervised"
8384
else
8485
echo "::warning::sagefs NuGet version does not support --supervised/--port flags (needed for E2E)"

0 commit comments

Comments
 (0)