refactor: update chimera to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 14:15:55 +01:00 committed by Martin Wimpress
parent d01855e0ed
commit 46724130ac
1 changed files with 2 additions and 2 deletions

View File

@ -1967,9 +1967,9 @@ function get_chimeralinux() {
local DATE=""
local ISO=""
local URL="https://repo.chimera-linux.org/live/${RELEASE}"
DATE=$(wget -q -O- "${URL}/sha256sums.txt" | head -n1 | cut -d'-' -f5)
DATE=$(web_pipe "${URL}/sha256sums.txt" | head -n1 | cut -d'-' -f5)
ISO="chimera-linux-x86_64-LIVE-${DATE}-${EDITION}.iso"
HASH=$(wget -q -O- "${URL}/sha256sums.txt" | grep 'x86_64-LIVE' | grep "${EDITION}" | cut_1)
HASH=$(web_pipe "${URL}/sha256sums.txt" | grep 'x86_64-LIVE' | grep "${EDITION}" | cut_1)
echo "${URL}/${ISO} ${HASH}"
}