From de7dca9b90e07526d0a8b4dc51784922c68769ff Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 22:06:14 +0100 Subject: [PATCH] refactor: update mageia to use web_pipe() --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 48a4e4f..9bb7a04 100755 --- a/quickget +++ b/quickget @@ -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}" }