refactor: update rockylinux to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:16:15 +01:00 committed by Martin Wimpress
parent b69c62e051
commit 681ee3a9aa

View File

@ -2692,7 +2692,7 @@ function get_rockylinux() {
local ISO="Rocky-${RELEASE}-x86_64-${EDITION}.iso"
local URL=""
URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64"
HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO})" | cut -d' ' -f4)
HASH=$(web_pipe "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO})" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}"
}