Refactor get_garuda() to add create_vm() compatibility

pull/388/head
Martin Wimpress 3 years ago
parent 6941a797d4
commit 039d1773e4
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 13
      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() {

Loading…
Cancel
Save