From d01855e0ed6a83874c8304dbd7f88a4791d7485b Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 14:15:27 +0100 Subject: [PATCH] refactor: update centos to use web_pipe() --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 923d58d..f011fb0 100755 --- a/quickget +++ b/quickget @@ -1949,12 +1949,12 @@ function get_centos-stream() { 8) ISO="CentOS-Stream-${RELEASE}-x86_64-latest-${EDITION}.iso" 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) ISO="CentOS-Stream-${RELEASE}-latest-x86_64-${EDITION}.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