From 11aa53d64dc3e260d1b6c1a5ef6b2b734f6d0333 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 10:39:45 +0000 Subject: [PATCH] Refactor get_kali() to add create_vm() compatibility --- quickget | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/quickget b/quickget index 6dcf6fc..998df54 100755 --- a/quickget +++ b/quickget @@ -857,20 +857,11 @@ function get_haiku() { function get_kali() { local HASH="" local ISO="" - local URL="" - local SUBDIR="" - - case ${RELEASE} in - latest) SUBDIR="current";; - *) SUBDIR="kali-weekly";; - esac + local URL="https://cdimage.kali.org/${RELEASE}" - URL="https://cdimage.kali.org/${SUBDIR}" ISO=$(wget -q -O- "${URL}/?C=M;O=D" | grep -o ">kali-linux-.*-installer-amd64.iso" | head -n 1 | cut -c 2-) HASH=$(wget -q -O- "${URL}/SHA256SUMS" | grep -v torrent | grep "${ISO}" | cut -d' ' -f1) - web_get "${URL}/${ISO}" "${VM_PATH}" - check_hash "${ISO}" "${HASH}" - make_vm_config "${ISO}" + echo "${URL}/${ISO} ${HASH}" } function get_kdeneon() {