commit 4a37e9dfdb7ff4a89e736649badc091e22d99a17 parent 1d4aa4471e12d45323031b655fa1794c11d2758e Author: Robin Bron <robin.bron@yourhosting.nl> Date: Fri, 25 Sep 2026 00:50:21 +0200 Show what's going on during the put Diffstat:
| M | mk/bootstrap-repo.sh | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/mk/bootstrap-repo.sh b/mk/bootstrap-repo.sh @@ -86,9 +86,10 @@ rm -f ".SIGN.RSA.${KEYNAME}.rsa.pub" idxsig.tar idxsignotr.tar.gz rm -rf "${ROOT}/build/work/.idxsig" echo "==> publishing ${ARCH}/APKINDEX.tar.gz" -code=$(curl -sS -o /dev/null -w '%{http_code}' \ +tmp_put=$(mktemp) +code=$(curl -sS -o "${tmp_put}" -w '%{http_code}' \ --aws-sigv4 "aws:amz:${BUCKET_REGION}:s3" \ --user "${BUCKET_ACCESS_KEY}:${BUCKET_SECRET_KEY}" \ -X PUT --upload-file APKINDEX.tar.gz \ - "${url}") || { echo "bootstrap-repo.sh: upload failed" >&2; exit 1; } -case "${code}" in 2*) echo "==> bootstrapped ${ARCH}/APKINDEX.tar.gz (${code})" ;; *) echo "bootstrap-repo.sh: upload returned HTTP ${code}" >&2; exit 1 ;; esac + "${url}") || { echo "bootstrap-repo.sh: upload failed" >&2; cat "${tmp_put}" >&2 2>/dev/null || true; rm -f "${tmp_put}"; exit 1; } +case "${code}" in 2*) rm -f "${tmp_put}"; echo "==> bootstrapped ${ARCH}/APKINDEX.tar.gz (${code})" ;; *) echo "bootstrap-repo.sh: upload returned HTTP ${code}" >&2; cat "${tmp_put}" >&2 2>/dev/null || true; rm -f "${tmp_put}"; exit 1 ;; esac