diff --git a/defaults.inc b/defaults.inc index e98b58d..67082af 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.4.30-1' +VERS='2026.4.30-2' noupdate=' restart cpu mm ' diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index a7311fc..f0227da 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -175,9 +175,12 @@ INSTALL_OMSA() { DOWNLOAD_VIRTIO() { while redirect_url=$( curl -I -s -S -f -w "%{redirect_url}\\n" -o /dev/null "${VIRTIO_URL}" ); do - VIRTIO_DOWNLOAD_URL=${url}; url=${redirect_url}; [[ -z "$url" ]] && break + if [ ${redirect_url} != "" ]; then + VIRTIO_DOWNLOAD_URL=${redirect_url} + VIRTIO_FILE=${redirect_url##*/} + break + fi done - VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/} echo -e "\n${idsCL[LightCyan]}Current \"Stable\" version available for download: ${idsCL[White]}${VIRTIO_FILE}${idsCL[Default]}" if [ -f /var/lib/vz/template/iso/${VIRTIO_FILE} ]; then