From 35a80ef6b94bc1608ff94a5b6ab937ca00f1ed92 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 22:01:28 +0100 Subject: [PATCH] refactor: update gentoo to use web_pipe() --- quickget | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/quickget b/quickget index ed15937..3ce2697 100755 --- a/quickget +++ b/quickget @@ -2205,10 +2205,12 @@ function get_gentoo() { local ISO="" local URL="https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds/" case ${EDITION} in - minimal) ISO=$(wget -q -O- "${URL}/${RELEASE}-iso.txt" | grep install | cut -d' ' -f1) - HASH=$( wget -q -O- "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut -d' ' -f1);; - livegui) ISO=$(wget -q -O- "${URL}/${RELEASE}-iso.txt" | grep livegui | cut -d' ' -f1) - HASH=$( wget -q -O- "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut -d' ' -f1);; + minimal) + ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep install | cut_1) + HASH=$(web_pipe "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut_1);; + livegui) + ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep livegui | cut -d' ' -f1) + HASH=$(web_pipe "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut_1);; esac echo "${URL}/${ISO} ${HASH}" }