feat: add progress bar to curl downloads in install script

Replace silent curl commands with --progress-bar option to provide visual feedback during Go and OBITools4 downloads, improving user experience without changing download logic.
This commit is contained in:
Eric Coissac
2026-03-13 16:40:53 +01:00
parent c23368e929
commit 43125f9f5e

View File

@@ -183,7 +183,7 @@ GOURL=$(curl -s "${URL}${GOFILE}" \
echo "Installing Go from: $GOURL" 1>&2 echo "Installing Go from: $GOURL" 1>&2
curl -s "$GOURL" | tar zxf - curl --progress-bar "$GOURL" | tar zxf -
PATH="$(pwd)/go/bin:$PATH" PATH="$(pwd)/go/bin:$PATH"
export PATH export PATH
@@ -198,7 +198,7 @@ mkdir -p "$GOCACHE"
echo "Downloading OBITools4 v${VERSION}..." 1>&2 echo "Downloading OBITools4 v${VERSION}..." 1>&2
echo "Source URL: $OBIURL4" 1>&2 echo "Source URL: $OBIURL4" 1>&2
if ! curl -sL "$OBIURL4" > obitools4.zip; then if ! curl --progress-bar -L "$OBIURL4" > obitools4.zip; then
echo "Error: Could not download OBITools4 version ${VERSION}" 1>&2 echo "Error: Could not download OBITools4 version ${VERSION}" 1>&2
echo "Please check that this version exists with: $0 --list" 1>&2 echo "Please check that this version exists with: $0 --list" 1>&2
exit 1 exit 1