Refactor get_linuxmint()

This commit is contained in:
Martin Wimpress 2022-02-21 01:57:11 +00:00
parent 68fe9348ba
commit b9eb58e95c
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -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() {