From ffeabdabf2d146f7f5e86d9f00db1cd74fb20a96 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 21 Oct 2021 00:54:45 +0100 Subject: [PATCH] Add hash checking for Linux Mint --- quickget | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 5d3bc66..71af89f 100755 --- a/quickget +++ b/quickget @@ -613,14 +613,17 @@ function get_fedora() { function get_linuxmint() { local FLAVOR="" + local HASH="" local ISO="" local URL="" validate_release "releases_linuxmint" FLAVOR=$(echo "${OS}" | cut -d'-' -f2) 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}" + check_hash "${ISO}" "${HASH}" make_vm_config "${ISO}" }