refactor: simplify get_gentoo()
This commit is contained in:
parent
4e891ec52d
commit
de798af9b0
9
quickget
9
quickget
|
@ -2182,13 +2182,10 @@ 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)
|
minimal) ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep install | cut_1);;
|
||||||
ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep install | cut_1)
|
livegui) ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep livegui | 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
|
esac
|
||||||
|
HASH=$(web_pipe "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut_1)
|
||||||
echo "${URL}/${ISO} ${HASH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue