refactor: update gentoo to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:01:28 +01:00 committed by Martin Wimpress
parent 568032077b
commit 35a80ef6b9
1 changed files with 6 additions and 4 deletions

View File

@ -2205,10 +2205,12 @@ function get_gentoo() {
local ISO="" local ISO=""
local URL="https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds/" local URL="https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds/"
case ${EDITION} in case ${EDITION} in
minimal) ISO=$(wget -q -O- "${URL}/${RELEASE}-iso.txt" | grep install | cut -d' ' -f1) minimal)
HASH=$( wget -q -O- "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut -d' ' -f1);; ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep install | cut_1)
livegui) ISO=$(wget -q -O- "${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);;
HASH=$( wget -q -O- "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut -d' ' -f1);; 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 esac
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }