refactor: update centos to use web_pipe()

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

View File

@ -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