refactor: update artixlinux to use web_pipe()
This commit is contained in:
parent
873e3b0bcc
commit
af7eb4ab65
4
quickget
4
quickget
|
@ -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}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue