refactor: update mageia to use web_pipe()
This commit is contained in:
parent
404661abec
commit
de7dca9b90
4
quickget
4
quickget
|
@ -2460,8 +2460,8 @@ function get_macos() {
|
||||||
|
|
||||||
function get_mageia() {
|
function get_mageia() {
|
||||||
local EDITION="${1:-}"
|
local EDITION="${1:-}"
|
||||||
local ISO=$(wget -q https://www.mageia.org/en/downloads/get/?q="Mageia-${RELEASE}-Live-${EDITION}-x86_64.iso" -O- | grep 'click here'| grep -o 'href=.*\.iso'|cut -d\" -f2)
|
local ISO=$(web_pipe https://www.mageia.org/en/downloads/get/?q="Mageia-${RELEASE}-Live-${EDITION}-x86_64.iso" | grep 'click here'| grep -o 'href=.*\.iso'|cut -d\" -f2)
|
||||||
local HASH=$(wget -q -O- "${ISO}.sha512" | cut_1)
|
local HASH=$(web_pipe "${ISO}.sha512" | cut_1)
|
||||||
echo "${ISO} ${HASH}"
|
echo "${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue