fix: solus downloads work and releases_solus() and editions_solus() are dynamic

This commit is contained in:
Martin Wimpress 2024-04-28 03:20:33 +01:00 committed by Martin Wimpress
parent ade6860696
commit 3099d7e96d
1 changed files with 3 additions and 3 deletions

View File

@ -1028,11 +1028,11 @@ function releases_slitaz() {
} }
function releases_solus() { function releases_solus() {
echo 4.5 echo $(web_pipe "https://getsol.us/download/" | grep "isos" | grep Download | cut -d'-' -f 2 | sort -ru)
} }
function editions_solus() { function editions_solus() {
echo Budgie GNOME MATE Plasma echo $(web_pipe "https://getsol.us/download/" | grep "isos" | grep Download | cut -d'.' -f5 | cut -d'-' -f2- | sort -u)
} }
function releases_sparkylinux() { function releases_sparkylinux() {
@ -2418,7 +2418,7 @@ function get_slitaz() {
function get_solus() { function get_solus() {
local HASH="" local HASH=""
local ISO="Solus-${RELEASE}-${EDITION}.iso" local ISO="Solus-${RELEASE}-${EDITION}.iso"
local URL="https://mirrors.rit.edu/solus/images/${RELEASE}" local URL="https://downloads.getsol.us/isos/${RELEASE}"
HASH=$(web_pipe "${URL}/${ISO}.sha256sum" | cut_1) HASH=$(web_pipe "${URL}/${ISO}.sha256sum" | cut_1)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }