fix: CachyOS downloads (#1483)

* update cachyos to new  editions

only two editions now and a revised cdn setup
This commit is contained in:
Alex Genovese 2024-10-18 20:43:14 +02:00 committed by GitHub
parent 8eda1e1150
commit 3de28e1e56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 8 deletions

View File

@ -600,12 +600,13 @@ function releases_bunsenlabs() {
} }
function releases_cachyos() { function releases_cachyos() {
# new cdn setup 10/2024
echo latest echo latest
} }
function editions_cachyos() { function editions_cachyos() {
#shellcheck disable=SC2046,SC2005 # desktop version now installs different desktop environments
echo $(web_pipe "https://mirror.cachyos.org/ISO/" | grep "title=" | grep -v testing | grep -v cli | cut -d'"' -f4 | cut -d '/' -f1 | sort) echo desktop handheld
} }
function releases_centos-stream() { function releases_centos-stream() {
@ -1638,12 +1639,10 @@ function get_bunsenlabs() {
function get_cachyos() { function get_cachyos() {
local HASH="" local HASH=""
local REL="" local URL=""
local URL="https://mirror.cachyos.org/ISO/${EDITION}/" URL="$(web_pipe "https://cachyos.org/download/" | tr '&' '\n' | grep "ISO/${EDITION}" | grep -v 'iso.sha' | grep -v 'iso.sig' | cut -d';' -f2)"
REL=$(web_pipe "${URL}" | grep -o '>[0-9]*/</a>' | grep -o '[0-9]*' | sort -ru | tail -n 1) HASH=$(web_pipe "${URL}.sha256" | cut -d' ' -f1)
local ISO="cachyos-${EDITION}-linux-${REL}.iso" echo "${URL} ${HASH}"
HASH=$(web_pipe "${URL}/${REL}/${ISO}.sha256" | cut -d' ' -f1)
echo "${URL}/${REL}/${ISO} ${HASH}"
} }
function get_centos-stream() { function get_centos-stream() {