Commit 04c94b6
committed
fix(ci): use if-statements in stage(), not bare [ -f ] && cp, for set -e safety
GitHub Actions runs each `run:` step under `bash -e`. A top-level
`[ -f "$1" ] && cp ...` line is NOT exempt from -e the way an if-condition
is: when the test is false, the line's exit status is 1 and the whole step
aborts immediately — which is exactly what happened on the very first
stage() call, since pdfium/encoder/bbox have no .data sidecar to copy.
Rewriting as explicit if/fi blocks (which set -e does exempt) fixes it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DofkqhMuAJbL9arnnuVisL1 parent 07a28b6 commit 04c94b6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments