Skip to content

Commit e55f3f7

Browse files
authored
VM: show progress bar while downloading (#3634)
1 parent c231e56 commit e55f3f7

13 files changed

+14
-14
lines changed

vm/archlinux-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ msg_info "Retrieving the URL for the Arch Linux .iso File"
424424
URL=https://geo.mirror.pkgbuild.com/iso/latest/archlinux-x86_64.iso
425425
sleep 2
426426
msg_ok "${CL}${BL}${URL}${CL}"
427-
curl -fsSL -o "$(basename "$URL")" "$URL"
427+
curl -f#SL -o "$(basename "$URL")" "$URL"
428428
echo -en "\e[1A\e[0K"
429429
FILE=$(basename $URL)
430430
msg_ok "Downloaded ${CL}${BL}${FILE}${CL}"

vm/debian-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ msg_info "Retrieving the URL for the Debian 12 Qcow2 Disk Image"
425425
URL=https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2
426426
sleep 2
427427
msg_ok "${CL}${BL}${URL}${CL}"
428-
curl -fsSL -o "$(basename "$URL")" "$URL"
428+
curl -f#SL -o "$(basename "$URL")" "$URL"
429429
echo -en "\e[1A\e[0K"
430430
FILE=$(basename $URL)
431431
msg_ok "Downloaded ${CL}${BL}${FILE}${CL}"

vm/docker-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ msg_info "Retrieving the URL for the Debian 12 Qcow2 Disk Image"
388388
URL="https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-$(dpkg --print-architecture).qcow2"
389389
sleep 2
390390
msg_ok "${CL}${BL}${URL}${CL}"
391-
curl -fsSL -o "$(basename "$URL")" "$URL"
391+
curl -f#SL -o "$(basename "$URL")" "$URL"
392392
echo -en "\e[1A\e[0K"
393393
FILE=$(basename $URL)
394394
msg_ok "Downloaded ${CL}${BL}${FILE}${CL}"

vm/haos-vm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var_os="homeassistant"
3131
DISK_SIZE="32G"
3232
#
3333
for version in "${VERSIONS[@]}"; do
34-
eval "$version=$(curl -fsSL https://raw.githubusercontent.com/home-assistant/version/master/$version.json | grep "ova" | cut -d '"' -f 4)"
34+
eval "$version=$(curl -fsSL https://raw.githubusercontent.com/home-assistant/version/master/stable.json | grep '"ova"' | cut -d '"' -f 4)"
3535
done
3636
YW=$(echo "\033[33m")
3737
BL=$(echo "\033[36m")
@@ -432,7 +432,7 @@ else
432432
fi
433433
sleep 2
434434
msg_ok "${CL}${BL}${URL}${CL}"
435-
curl -fsSL -o "$(basename "$URL")" "$URL"
435+
curl -f#SL -o "$(basename "$URL")" "$URL"
436436
echo -en "\e[1A\e[0K"
437437
FILE=$(basename $URL)
438438
msg_ok "Downloaded ${CL}${BL}haos_ova-${BRANCH}.qcow2.xz${CL}"

vm/mikrotik-routeros.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ URL=https://download.mikrotik.com/routeros/7.15.3/chr-7.15.3.img.zip
254254

255255
sleep 2
256256
msg_ok "${CL}${BL}${URL}${CL}"
257-
curl -fsSL -o "$(basename "$URL")" "$URL"
257+
curl -f#SL -o "$(basename "$URL")" "$URL"
258258
echo -en "\e[1A\e[0K"
259259
FILE=$(basename $URL)
260260
msg_ok "Downloaded ${CL}${BL}$FILE${CL}"

vm/nextcloud-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ msg_info "Retrieving the URL for the $NAME Disk Image"
389389
URL=http://mirror.turnkeylinux.org/turnkeylinux/images/iso/turnkey-nextcloud-18.1-bookworm-amd64.iso
390390
sleep 2
391391
msg_ok "${CL}${BL}${URL}${CL}"
392-
curl -fsSL -o "$(basename "$URL")" "$URL"
392+
curl -f#SL -o "$(basename "$URL")" "$URL"
393393
echo -en "\e[1A\e[0K"
394394
FILE=$(basename $URL)
395395
msg_ok "Downloaded ${CL}${BL}${FILE}${CL}"

vm/openwrt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ URL="https://downloads.openwrt.org/releases/$stableversion/targets/x86/64/openwr
453453

454454
sleep 2
455455
msg_ok "${CL}${BL}${URL}${CL}"
456-
curl -fsSL -o "$(basename "$URL")" "$URL"
456+
curl -f#SL -o "$(basename "$URL")" "$URL"
457457
echo -en "\e[1A\e[0K"
458458
FILE=$(basename $URL)
459459
msg_ok "Downloaded ${CL}${BL}$FILE${CL}"

vm/opnsense-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ msg_info "Retrieving the URL for the OPNsense Qcow2 Disk Image"
527527
URL=https://download.freebsd.org/releases/VM-IMAGES/14.2-RELEASE/amd64/Latest/FreeBSD-14.2-RELEASE-amd64.qcow2.xz
528528
sleep 2
529529
msg_ok "${CL}${BL}${URL}${CL}"
530-
curl -fsSL -o "$(basename "$URL")" "$URL"
530+
curl -f#SL -o "$(basename "$URL")" "$URL"
531531
echo -en "\e[1A\e[0K"
532532
FILE=Fressbsd.qcow2
533533
unxz -cv $(basename $URL) >${FILE}

vm/owncloud-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ msg_info "Retrieving the URL for the $NAME Disk Image"
389389
URL=http://mirror.turnkeylinux.org/turnkeylinux/images/iso/turnkey-owncloud-18.0-bookworm-amd64.iso
390390
sleep 2
391391
msg_ok "${CL}${BL}${URL}${CL}"
392-
curl -fsSL -o "$(basename "$URL")" "$URL"
392+
curl -f#SL -o "$(basename "$URL")" "$URL"
393393
echo -en "\e[1A\e[0K"
394394
FILE=$(basename $URL)
395395
msg_ok "Downloaded ${CL}${BL}${FILE}${CL}"

vm/pimox-haos-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ msg_info "Getting URL for Home Assistant ${BRANCH} Disk Image"
296296
URL=https://github.com/home-assistant/operating-system/releases/download/${BRANCH}/haos_generic-aarch64-${BRANCH}.qcow2.xz
297297
sleep 2
298298
msg_ok "${CL}${BL}${URL}${CL}"
299-
curl -fsSL -o "$(basename "$URL")" "$URL"
299+
curl -f#SL -o "$(basename "$URL")" "$URL"
300300
echo -en "\e[1A\e[0K"
301301
FILE=$(basename $URL)
302302
msg_ok "Downloaded ${CL}${BL}haos_generic-aarch64-${BRANCH}.qcow2.xz${CL}"

0 commit comments

Comments
 (0)