Commit f1d9713
upload-to-s3: fail early if the source file is unreadable
If $src can't be read, `tee < "$src"` fails and set -e aborts -- but the
background sha256/wc readers, already blocked opening their fifos, never get a
writer and leak (hang). Guard with `[[ -r "$src" ]]` before launching them,
which also gives a clear error message.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 074429a commit f1d9713
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
0 commit comments