Repository navigation
Commit 99d16a2
committed
fix(hack): stop the RD preset check failing at random
grep -q exits on its first match, so piping the candidate list into it leaves
the writer with unwritten output and kills it with SIGPIPE. Under pipefail the
pipeline then exits 141, which the caller reads exactly like "not found" — so a
preset that is present gets reported missing, naming a different file and a
different preset on every run.
Measured at roughly one spurious failure per run before the change, none after.
A here-string removes the pipe and with it the race.
Assisted-by: LLM
Signed-off-by: Andrei Kvapil <[email protected]>1 parent d21feae commit 99d16a2
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
0 commit comments