refactor: update gentoo to use web_pipe()
This commit is contained in:
parent
568032077b
commit
35a80ef6b9
10
quickget
10
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}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue