From c36463d85d8f3d4559617446e2f231daac14ca2d Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 10:36:07 +0000 Subject: [PATCH] Refactor get_ghostbsd() to add create_vm() compatibility --- quickget | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/quickget b/quickget index bd40035..5af6d27 100755 --- a/quickget +++ b/quickget @@ -833,19 +833,15 @@ function get_gentoo() { function get_ghostbsd() { local EDITION="${1:-}" local ISO="" - local URL="" + local URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}" local HASH="" case ${EDITION} in mate) ISO="GhostBSD-${RELEASE}.iso";; xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";; esac - - URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}" - HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f3) - web_get "${URL}/${ISO}" "${VM_PATH}" - check_hash "${ISO}" "${HASH}" - make_vm_config "${ISO}" + HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) + echo "${URL}/${ISO} ${HASH}" } function get_haiku() {