fix(quickget): update Athena OS ISO naming for v23.11+

Newer releases use 'athenaos-rolling' prefix instead of 'athena-rolling'.
Detect which naming scheme to use by checking URL availability.
This commit is contained in:
Martin Wimpress 2026-01-23 22:42:55 +00:00 committed by Martin Wimpress
parent 07dee441b0
commit 542987bdbc
1 changed files with 7 additions and 1 deletions

View File

@ -1625,7 +1625,13 @@ function get_artixlinux() {
function get_athenaos() {
local HASH=""
local URL="https://github.com/Athena-OS/athena/releases/download/${RELEASE}"
local ISO="athena-rolling-x86_64.iso"
local ISO=""
# Newer releases (v23.11+) use "athenaos-rolling" naming, older ones use "athena-rolling"
if web_check "${URL}/athenaos-rolling-x86_64.iso"; then
ISO="athenaos-rolling-x86_64.iso"
else
ISO="athena-rolling-x86_64.iso"
fi
HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}