From 3288be8d06ae7fd80e864fd4fb85a9ed845a119b Mon Sep 17 00:00:00 2001 From: Neinei0k Date: Sun, 17 Sep 2023 01:30:21 +0300 Subject: [PATCH] Fix Gentoo hash check in quickget Gentoo DIGESTS file contains BLAKE2B and SHA512 hashes. Since BLAKE2B comes first in the file, it was incorrectly selected when checking SHA512 checksum. --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index b7e43fa..22a53db 100755 --- a/quickget +++ b/quickget @@ -1318,7 +1318,7 @@ function get_gentoo() { local URL="https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds/" ISO=$(wget -q -O- "${URL}/${RELEASE}-iso.txt" | grep install | cut -d' ' -f1) - HASH=$( wget -q -O- "${URL}/${ISO}.DIGESTS" | grep iso | grep -v CONTENTS | cut -d' ' -f1) + HASH=$( wget -q -O- "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut -d' ' -f1) echo "${URL}/${ISO} ${HASH}" }