Commit 4d69b4b
fix(ci): strip dart-run noise via byte-level
Last run uncovered the actual prefix: `dart run` joins "Running build
hooks..." (sometimes printed multiple times) onto the same line as our
JSON's opening `{`, so my line-based `sed -n '/^{/,$p'` matched no line
and ate the JSON entirely.
Replace it with `json="{${raw#*\{}"` — bash parameter expansion that
extracts from the first `{` byte forward, regardless of newlines. Guard
the empty-output case explicitly so the error message is unambiguous.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>{ extraction, not line-based sed1 parent f10dc84 commit 4d69b4b
1 file changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
0 commit comments