Fix hash checking to jumping Ubuntu devel series. Close #151

pull/158/head
Martin Wimpress 3 years ago
parent 330c238792
commit 7d9a38cf33
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 5
      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"

Loading…
Cancel
Save