proxmox-install: show download progress bar for the bundle fetch
-fsSL suppresses all output during the ~30 MB download, which leaves the operator staring at 'fetching bundle...' for up to a minute on a cold registry. Drop -s and add --progress-bar so there is a live indicator; keep -fL so we still fail on HTTP errors and follow redirects. Print the downloaded size alongside 'extracting' for quick sanity-checking. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -39,9 +39,14 @@ tmp="$(mktemp -d)"
|
||||
trap 'rm -rf "${tmp}"' EXIT
|
||||
|
||||
echo "==> fetching bundle (${VETTING_VERSION}) from ${BUNDLE_URL}"
|
||||
curl -fsSL "${BUNDLE_URL}" -o "${tmp}/vetting-bundle.tar.gz"
|
||||
# --progress-bar (not -s) so the operator sees a live indicator —
|
||||
# bundles are ~30 MB and the registry can be slow on a cold run, and
|
||||
# a silent 5 s has tricked us into Ctrl-C'ing mid-download before.
|
||||
# -f keeps fail-on-HTTP-error; -L still follows redirects.
|
||||
curl -fL --progress-bar "${BUNDLE_URL}" -o "${tmp}/vetting-bundle.tar.gz"
|
||||
|
||||
echo "==> extracting"
|
||||
bundle_size="$(du -h "${tmp}/vetting-bundle.tar.gz" | cut -f1)"
|
||||
echo "==> extracting (${bundle_size})"
|
||||
tar -C "${tmp}" -xzf "${tmp}/vetting-bundle.tar.gz"
|
||||
|
||||
# Bundle extracts to vetting-bundle-<sha>/; glob-match the single
|
||||
|
||||
Reference in New Issue
Block a user