From 9073c5f2809946f2eca18be02020cbdd16732cb6 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 10:41:59 +0000 Subject: [PATCH] Refactor get_linuxmint() to add create_vm() compatibility --- quickget | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/quickget b/quickget index 5154300..1161c7d 100755 --- a/quickget +++ b/quickget @@ -884,15 +884,11 @@ function get_kolibrios() { function get_linuxmint() { local EDITION="${1:-}" local HASH="" - local ISO="" - local URL="" + local ISO="linuxmint-${RELEASE}-${EDITION}-64bit.iso" + local URL="https://mirror.bytemark.co.uk/linuxmint/stable/${RELEASE}" - URL="https://mirror.bytemark.co.uk/linuxmint/stable/${RELEASE}" - ISO="linuxmint-${RELEASE}-${EDITION}-64bit.iso" - HASH=$(wget -q -O- "${URL}/${RELEASE}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f1) - web_get "${URL}/${ISO}" "${VM_PATH}" - check_hash "${ISO}" "${HASH}" - make_vm_config "${ISO}" + HASH=$(wget -q -O- "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f1) + echo "${URL}/${ISO} ${HASH}" } function get_macos() {