From 294a0c08939c5c2873cb06665208c87b273963c6 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 10:53:17 +0000 Subject: [PATCH] Refactor get_openbsd() to add create_vm() compatibility --- quickget | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/quickget b/quickget index 218532f..9d1105d 100755 --- a/quickget +++ b/quickget @@ -1017,15 +1017,10 @@ function get_nixos() { function get_openbsd() { local HASH="" - local ISO="" - local URL="" - - URL="https://cdn.openbsd.org/pub/OpenBSD/${RELEASE}/amd64" - ISO="install${RELEASE//\./}.iso" + local ISO="install${RELEASE//\./}.iso" + local URL="https://cdn.openbsd.org/pub/OpenBSD/${RELEASE}/amd64" HASH=$(wget -q -O- "${URL}/SHA256" | 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_opensuse() {