mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add hash checking for Linux Mint
This commit is contained in:
parent
3c2249934a
commit
ffeabdabf2
1 changed files with 4 additions and 1 deletions
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 a new issue