Commit 3107c35
Follow redirects when downloading MinIO client in CI
dl.min.io now responds with an HTTP 302 redirect to GitHub Releases
for the mc binary. curl -O does not follow redirects, so the install
script was saving the empty redirect response (141 bytes) as the
mc binary and chmod +x-ing it. Subsequent steps that invoke mc fail
with `/usr/local/bin/mc: line 1: a: No such file or directory`.
Add -L so curl follows the redirect, and -f so it fails the script
loudly if the download returns a non-2xx status instead of silently
producing an invalid binary.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 95b9090 commit 3107c35
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments