fix(quickget): handle Solus Xfce beta naming for older releases

Xfce was a beta edition with uppercase naming (XFCE-Beta) in releases
prior to 2025-11-29. Fall back to beta naming when standard fails.
This commit is contained in:
Martin Wimpress 2026-01-23 22:54:04 +00:00 committed by Martin Wimpress
parent e560c22d69
commit 5b67c0808f
1 changed files with 8 additions and 1 deletions

View File

@ -2522,8 +2522,15 @@ function get_slitaz() {
function get_solus() {
local HASH=""
local ISO="Solus-${EDITION}-Release-${RELEASE}.iso"
local ISO=""
local URL="https://downloads.getsol.us/isos/${RELEASE}"
# Try standard naming first, then beta naming for Xfce (older releases had Xfce as beta)
ISO="Solus-${EDITION}-Release-${RELEASE}.iso"
if ! web_check "${URL}/${ISO}"; then
# Try uppercase XFCE-Beta naming for older releases
local EDITION_UPPER="${EDITION^^}"
ISO="Solus-${EDITION_UPPER}-Beta-Release-${RELEASE}.iso"
fi
HASH=$(web_pipe "${URL}/${ISO}.sha256sum" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}