Skip to content

Commit

Permalink
fix: CachyOS downloads (#1483)
Browse files Browse the repository at this point in the history
* update cachyos to new  editions

only two editions now and a revised cdn setup
  • Loading branch information
TuxVinyards authored Oct 18, 2024
1 parent 8eda1e1 commit 3de28e1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -600,12 +600,13 @@ function releases_bunsenlabs() {
}

function releases_cachyos() {
# new cdn setup 10/2024
echo latest
}

function editions_cachyos() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://mirror.cachyos.org/ISO/" | grep "title=" | grep -v testing | grep -v cli | cut -d'"' -f4 | cut -d '/' -f1 | sort)
# desktop version now installs different desktop environments
echo desktop handheld
}

function releases_centos-stream() {
Expand Down Expand Up @@ -1638,12 +1639,10 @@ function get_bunsenlabs() {

function get_cachyos() {
local HASH=""
local REL=""
local URL="https://mirror.cachyos.org/ISO/${EDITION}/"
REL=$(web_pipe "${URL}" | grep -o '>[0-9]*/</a>' | grep -o '[0-9]*' | sort -ru | tail -n 1)
local ISO="cachyos-${EDITION}-linux-${REL}.iso"
HASH=$(web_pipe "${URL}/${REL}/${ISO}.sha256" | cut -d' ' -f1)
echo "${URL}/${REL}/${ISO} ${HASH}"
local URL=""
URL="$(web_pipe "https://cachyos.org/download/" | tr '&' '\n' | grep "ISO/${EDITION}" | grep -v 'iso.sha' | grep -v 'iso.sig' | cut -d';' -f2)"
HASH=$(web_pipe "${URL}.sha256" | cut -d' ' -f1)
echo "${URL} ${HASH}"
}

function get_centos-stream() {
Expand Down

0 comments on commit 3de28e1

Please sign in to comment.