refactor: update centos to use web_pipe()
This commit is contained in:
parent
911726aa61
commit
d01855e0ed
4
quickget
4
quickget
|
@ -1949,12 +1949,12 @@ function get_centos-stream() {
|
||||||
8)
|
8)
|
||||||
ISO="CentOS-Stream-${RELEASE}-x86_64-latest-${EDITION}.iso"
|
ISO="CentOS-Stream-${RELEASE}-x86_64-latest-${EDITION}.iso"
|
||||||
URL="https://mirrors.ocf.berkeley.edu/centos/8-stream/isos/x86_64"
|
URL="https://mirrors.ocf.berkeley.edu/centos/8-stream/isos/x86_64"
|
||||||
HASH=$(wget -q -O- ${URL}/CHECKSUM | grep "SHA256 (${ISO}" | cut -d' ' -f4)
|
HASH=$(web_pipe "${URL}/CHECKSUM" | grep "SHA256 (${ISO}" | cut -d' ' -f4)
|
||||||
;;
|
;;
|
||||||
9)
|
9)
|
||||||
ISO="CentOS-Stream-${RELEASE}-latest-x86_64-${EDITION}.iso"
|
ISO="CentOS-Stream-${RELEASE}-latest-x86_64-${EDITION}.iso"
|
||||||
URL="https://mirrors.ocf.berkeley.edu/centos-stream/9-stream/BaseOS/x86_64/iso"
|
URL="https://mirrors.ocf.berkeley.edu/centos-stream/9-stream/BaseOS/x86_64/iso"
|
||||||
HASH=$(wget -q -O- ${URL}/${ISO}.SHA256SUM | grep "SHA256 (${ISO}" | cut -d' ' -f4)
|
HASH=$(web_pipe "${URL}/${ISO}.SHA256SUM" | grep "SHA256 (${ISO}" | cut -d' ' -f4)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue