Refactor get_linuxmint()

pull/373/head
Martin Wimpress 3 years ago
parent 68fe9348ba
commit b9eb58e95c
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 7
      quickget

@ -984,13 +984,12 @@ function get_linuxmint() {
validate_release "releases_linuxmint"
FLAVOR=$(echo "${OS}" | cut -d'-' -f2)
URL="https://mirror.bytemark.co.uk/linuxmint/stable/${RELEASE}"
ISO="linuxmint-${RELEASE}-${FLAVOR}-64bit.iso"
HASH=$(wget -q -O- "https://mirror.bytemark.co.uk/linuxmint/stable/${RELEASE}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f1)
URL="https://mirror.bytemark.co.uk/linuxmint/stable/${RELEASE}/${ISO}"
web_get "${URL}" "${VM_PATH}"
HASH=$(wget -q -O- "${URL}/${RELEASE}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f1)
web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
}
function get_manjaro() {

Loading…
Cancel
Save