VM: show progress bar while downloading (#3634)

This commit is contained in:
CanbiZ
2025-04-03 16:01:23 +02:00
committed by GitHub
parent c231e56302
commit e55f3f77fd
13 changed files with 14 additions and 14 deletions

View File

@ -527,7 +527,7 @@ msg_info "Retrieving the URL for the OPNsense Qcow2 Disk Image"
URL=https://download.freebsd.org/releases/VM-IMAGES/14.2-RELEASE/amd64/Latest/FreeBSD-14.2-RELEASE-amd64.qcow2.xz
sleep 2
msg_ok "${CL}${BL}${URL}${CL}"
curl -fsSL -o "$(basename "$URL")" "$URL"
curl -f#SL -o "$(basename "$URL")" "$URL"
echo -en "\e[1A\e[0K"
FILE=Fressbsd.qcow2
unxz -cv $(basename $URL) >${FILE}