Add hash checking for Linux Mint

pull/142/head
Martin Wimpress 3 years ago
parent 3c2249934a
commit ffeabdabf2
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 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…
Cancel
Save