From 7d9a38cf33503e3a397a3a03ce4a74307e2e23ed Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 25 Oct 2021 11:55:25 +0100 Subject: [PATCH] Fix hash checking to jumping Ubuntu devel series. Close #151 --- quickget | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index 3bc3639..ce22457 100755 --- a/quickget +++ b/quickget @@ -796,9 +796,8 @@ function get_ubuntu() { URL="http://cdimage.ubuntu.com/${PROJECT}/releases/${RELEASE}/release" fi - web_get "${URL}/SHA256SUMS" "${VM_PATH}" - ISO=$(grep 'desktop\|dvd' "${VM_PATH}/SHA256SUMS" | grep amd64 | cut -d' ' -f2 | sed 's|*||g') - HASH=$(cat "${VM_PATH}/SHA256SUMS" | cut -d' ' -f1) + HASH=$(wget -q -O- "${URL}/SHA256SUMS" | cut -d' ' -f1) + ISO=$(wget -q -O- "${URL}/SHA256SUMS" | grep 'desktop\|dvd' | grep amd64 | cut -d' ' -f2 | sed 's|*||g') if [ "${RELEASE}" == "devel" ]; then zsync_get "${URL}/${ISO}" "${VM_PATH}" "${OS}-${RELEASE}.iso" make_vm_config "${OS}-${RELEASE}.iso"