From 039d1773e4bc3638da59e93e80751a31222a6b18 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 10:33:49 +0000 Subject: [PATCH] Refactor get_garuda() to add create_vm() compatibility --- quickget | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/quickget b/quickget index 657740d..abf80e0 100755 --- a/quickget +++ b/quickget @@ -806,23 +806,18 @@ function get_freebsd() { } function get_garuda() { - local BRANCH="" local EDITION="${1:-}" local HASH="" local ISO="" local URL="" case ${EDITION} in - cinnamon|mate) BRANCH="community";; - *) BRANCH="garuda";; + cinnamon|mate) URL="http://mirrors.fossho.st/garuda/iso/community/${EDITION}/${RELEASE}";; + *) URL="http://mirrors.fossho.st/garuda/iso/garuda/${EDITION}/${RELEASE}";; esac - - URL="http://mirrors.fossho.st/garuda/iso/${BRANCH}/${EDITION}/${RELEASE}" - ISO="${OS}-${EDITION}-linux-zen-${RELEASE}.iso" + ISO="garuda-${EDITION}-linux-zen-${RELEASE}.iso" 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_gentoo() {