From 0a1877d4c3b76f47873c01cdc24e94fbe41651e5 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 10:30:45 +0000 Subject: [PATCH] Refactor get_elementary() to add create_vm() compatibility --- quickget | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/quickget b/quickget index bc120c3..a4101f0 100755 --- a/quickget +++ b/quickget @@ -771,14 +771,10 @@ function get_devuan() { } function get_elementary() { - local ISO="" - local ISOTAG="20211218-rc" - local URL="" - - ISO="elementaryos-${RELEASE}-stable.${ISOTAG}.iso" - URL="https://ams3.dl.elementary.io/download/$(date +%s | base64)=/${ISO}" - web_get "${URL}" "${VM_PATH}" - make_vm_config "${ISO}" + local HASH="" + local ISO="elementaryos-${RELEASE}-stable.20211218-rc.iso" + local URL="https://ams3.dl.elementary.io/download" + echo "${URL}/$(date +%s | base64)/${ISO} ${HASH}" } function get_fedora() {