Add hash checking for Linux Mint
This commit is contained in:
parent
3c2249934a
commit
ffeabdabf2
5
quickget
5
quickget
|
@ -613,14 +613,17 @@ function get_fedora() {
|
||||||
|
|
||||||
function get_linuxmint() {
|
function get_linuxmint() {
|
||||||
local FLAVOR=""
|
local FLAVOR=""
|
||||||
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
validate_release "releases_linuxmint"
|
validate_release "releases_linuxmint"
|
||||||
FLAVOR=$(echo "${OS}" | cut -d'-' -f2)
|
FLAVOR=$(echo "${OS}" | cut -d'-' -f2)
|
||||||
ISO="linuxmint-${RELEASE}-${FLAVOR}-64bit.iso"
|
ISO="linuxmint-${RELEASE}-${FLAVOR}-64bit.iso"
|
||||||
URL="https://mirrors.edge.kernel.org/linuxmint/stable/${RELEASE}/${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}"
|
web_get "${URL}" "${VM_PATH}"
|
||||||
|
check_hash "${ISO}" "${HASH}"
|
||||||
make_vm_config "${ISO}"
|
make_vm_config "${ISO}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue