refactor: update artixlinux to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 14:10:33 +01:00 committed by Martin Wimpress
parent 873e3b0bcc
commit af7eb4ab65
1 changed files with 2 additions and 2 deletions

View File

@ -1845,9 +1845,9 @@ function get_artixlinux() {
local HASH="" local HASH=""
local ISO="" local ISO=""
local URL="https://iso.artixlinux.org/iso" local URL="https://iso.artixlinux.org/iso"
DATE=$(wget -q -O- ${URL}/sha256sums | cut -d'-' -f4 | head -1) DATE=$(web_pipe "${URL}/sha256sums" | cut -d'-' -f4 | head -1)
ISO="artix-${EDITION}-${DATE}-x86_64.iso" ISO="artix-${EDITION}-${DATE}-x86_64.iso"
HASH=$(wget -q -O- ${URL}/sha256sums | grep "${ISO}") HASH=$(web_pipe "${URL}/sha256sums" | grep "${ISO}")
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }