Commit b52ef3b
fix(skills): prevent SIGPIPE exit in bump-go-dep context script
The script failed when awk piped through head -60 because awk matched
all 211 lines across multiple require blocks. head closed the pipe
after 60 lines, causing SIGPIPE (exit 141) under set -euo pipefail.
Fix by printing only the first require block in awk, guarding head -40
with || true, and redirecting stderr to stdout to prevent gh CLI
warnings from triggering Claude Code error detection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Marc Nuri <marc@marcnuri.com>1 parent ddbbc5a commit b52ef3b
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
0 commit comments