From 5ac9a848eb3371abaa0ccae27a8874b69cd4ff31 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 11:41:53 +0000 Subject: [PATCH] Refactor get_dragonflybsd() to support create_vm() --- quickget | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/quickget b/quickget index a26fe90..5289caa 100755 --- a/quickget +++ b/quickget @@ -790,15 +790,11 @@ function get_devuan() { function get_dragonflybsd() { local HASH="" - local ISO="" - local URL="" + local ISO="dfly-x86_64-${RELEASE}_REL.iso" + local URL="http://mirror-master.dragonflybsd.org/iso-images" - URL="http://mirror-master.dragonflybsd.org/iso-images" - ISO="dfly-x86_64-${RELEASE}_REL.iso" HASH=$(wget -q -O- "${URL}/md5.txt" | grep "(${ISO})" | cut -d' ' -f4) - web_get "${URL}/${ISO}" "${VM_PATH}" - check_hash "${ISO}" "${HASH}" - make_vm_config "${ISO}" + echo "${URL}/${ISO} ${HASH}" } function get_elementary() {