Repository navigation
Commit 2963c23
ci: harden Remove Snapshots step against silent failure
From a Gemini CI review: `find ... | xargs rm -rf` masks a find failure
(xargs exits 0 on empty stdin), and GNU xargs also runs `rm` once with no
operands on empty input. Add `set -o pipefail` so a find failure fails the
step, and `xargs -r` so rm is skipped when there is nothing to remove.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f15d3c3 commit 2963c23
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
115 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
0 commit comments