From facb5d163e39c3d00b8b4c04dad24ac3dd7cfa5c Mon Sep 17 00:00:00 2001 From: zenobit Date: Mon, 29 Jan 2024 16:16:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20=20CachyOS=20latest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zenobit --- quickget | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index 454e9d2..5c5d81f 100755 --- a/quickget +++ b/quickget @@ -543,7 +543,7 @@ function editions_bodhi() { } function releases_cachyos() { - echo 230813 + echo latest } function editions_cachyos() { @@ -1612,8 +1612,13 @@ function get_bodhi() { function get_cachyos() { local HASH="" - local ISO="cachyos-${EDITION}-linux-${RELEASE}.iso" - local URL="https://mirror.cachyos.org/ISO/${EDITION}/${RELEASE}" + local ISO="" + local URL="" + local release="" + + release=$(curl "https://mirror.cachyos.org/ISO/${EDITION}/" | grep -Po '(?<=">)[0-9]+(?=/)' | tail -n 1) + ISO="cachyos-${EDITION}-linux-${release}.iso" + URL="https://mirror.cachyos.org/ISO/${EDITION}/${release}" HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1) echo "${URL}/${ISO} ${HASH}" }