refactor: update mageia to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:06:14 +01:00 committed by Martin Wimpress
parent 404661abec
commit de7dca9b90
1 changed files with 2 additions and 2 deletions

View File

@ -2460,8 +2460,8 @@ function get_macos() {
function get_mageia() {
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 HASH=$(wget -q -O- "${ISO}.sha512" | cut_1)
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=$(web_pipe "${ISO}.sha512" | cut_1)
echo "${ISO} ${HASH}"
}