Refactor get_linuxmint()
This commit is contained in:
parent
68fe9348ba
commit
b9eb58e95c
7
quickget
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…
Reference in New Issue
Block a user