refactor: update alma to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 14:08:33 +01:00 committed by Martin Wimpress
parent f007e06abe
commit b0a439ceb7
1 changed files with 1 additions and 1 deletions

View File

@ -1742,7 +1742,7 @@ function get_alma() {
local HASH="" local HASH=""
local ISO="AlmaLinux-${RELEASE}-latest-x86_64-${EDITION}.iso" local ISO="AlmaLinux-${RELEASE}-latest-x86_64-${EDITION}.iso"
local URL="https://repo.almalinux.org/almalinux/${RELEASE}/isos/x86_64" local URL="https://repo.almalinux.org/almalinux/${RELEASE}/isos/x86_64"
HASH="$(wget -q -O- "${URL}/CHECKSUM" | grep "(${ISO}" | cut -d' ' -f4)" HASH="$(web_pipe "${URL}/CHECKSUM" | grep "(${ISO}" | cut -d' ' -f4)"
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }