Commit 6bf5d74
fix: use grep -m 1 instead of grep | head -1 to avoid broken pipe
The shell runs with 'set -e -o pipefail', so when head -1 closes the
pipe early, grep exits with SIGPIPE (exit 141) and pipefail propagates
that as the pipeline's exit status, failing the step.
Using 'grep -m 1' makes grep stop after the first match itself,
eliminating the broken pipe entirely.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c974c00 commit 6bf5d74
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments