From 512aa14fe283789502cfff47d78c39ac38ca927b Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 10:48:25 +0000 Subject: [PATCH] Refactor get_mxlinux() to add create_vm() compatibility --- quickget | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/quickget b/quickget index a623ab9..2165238 100755 --- a/quickget +++ b/quickget @@ -979,26 +979,15 @@ function get_mxlinux() { local EDITION="${1:-}" local HASH="" local ISO="" - local URL="" + local URL="https://sourceforge.net/projects/mx-linux/files/Final/${EDITION}" case ${EDITION} in - xfce) - URL="https://sourceforge.net/projects/mx-linux/files/Final/Xfce" - ISO="MX-${RELEASE}_x64.iso" - ;; - kde) - URL="https://sourceforge.net/projects/mx-linux/files/Final/KDE" - ISO="MX-${RELEASE}_KDE_x64.iso" - ;; - fluxbox) - URL="https://sourceforge.net/projects/mx-linux/files/Final/Fluxbox" - ISO="MX-${RELEASE}_fluxbox_x64.iso" - ;; + Xfce) ISO="MX-${RELEASE}_x64.iso";; + KDE) ISO="MX-${RELEASE}_KDE_x64.iso";; + Fluxbox) ISO="MX-${RELEASE}_fluxbox_x64.iso";; esac HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1) - web_get "${URL}/${ISO}" "${VM_PATH}" - check_hash "${ISO}" "${HASH}" - make_vm_config "${ISO}" + echo "${URL}/${ISO} ${HASH}" } function get_netboot() {