refactor: update rockylinux to use web_pipe()
This commit is contained in:
parent
b69c62e051
commit
681ee3a9aa
2
quickget
2
quickget
|
@ -2692,7 +2692,7 @@ function get_rockylinux() {
|
||||||
local ISO="Rocky-${RELEASE}-x86_64-${EDITION}.iso"
|
local ISO="Rocky-${RELEASE}-x86_64-${EDITION}.iso"
|
||||||
local URL=""
|
local URL=""
|
||||||
URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64"
|
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}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue