From f6ce01a09e3a88b4dceca95e0629f98e30da2321 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 21 Apr 2024 09:51:18 +0100 Subject: [PATCH] feat: make releases_centos-stream() dynamic and drop v8 The CentOS Stream 8 EOL is very close, so removing it now. --- quickget | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/quickget b/quickget index 50da54f..6595d99 100755 --- a/quickget +++ b/quickget @@ -857,7 +857,7 @@ function editions_cachyos() { } function releases_centos-stream() { - echo 9 8 + echo $(web_pipe "https://linuxsoft.cern.ch/centos-stream/" | grep "\-stream" | cut -d'"' -f 6 | cut -d'-' -f 1) } function editions_centos-stream() { @@ -1914,20 +1914,9 @@ function get_cachyos() { } function get_centos-stream() { - local HASH="" - local ISO="" - case ${RELEASE} in - 8) - ISO="CentOS-Stream-${RELEASE}-x86_64-latest-${EDITION}.iso" - URL="https://mirrors.ocf.berkeley.edu/centos/8-stream/isos/x86_64" - 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=$(web_pipe "${URL}/${ISO}.SHA256SUM" | grep "SHA256 (${ISO}" | cut -d' ' -f4) - ;; - esac + local ISO="CentOS-Stream-${RELEASE}-latest-x86_64-${EDITION}.iso" + local URL="https://linuxsoft.cern.ch/centos-stream/${RELEASE}-stream/BaseOS/x86_64/iso" + local HASH=$(web_pipe "${URL}/${ISO}.SHA256SUM" | grep "SHA256 (${ISO}" | cut -d' ' -f4) echo "${URL}/${ISO} ${HASH}" }