fix: Arcolinux completely changed releases

only 3 editions now and far too messy to support legacy releases
This commit is contained in:
Phil Clifford 2024-05-15 16:51:05 +01:00 committed by Martin Wimpress
parent 45470649cb
commit 9cfc4f6ed7
1 changed files with 9 additions and 5 deletions

View File

@ -599,11 +599,13 @@ function releases_archlinux() {
function releases_arcolinux() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://mirror.accum.se/mirror/arcolinux.info/iso/" | grep -o -E "v[[:digit:]]{2}.[[:digit:]]{2}.[[:digit:]]{2}" | sort -ru | head -n 5)
# breaking change in v24.05
# v24.05.1 is the first release with the new naming scheme and too complex to parse old and new so just show the new
echo $(web_pipe "https://mirror.accum.se/mirror/arcolinux.info/iso/" | grep -o -E -e "v24.0[5-9].[[:digit:]]{2}" -e "v24.1[0-2].[[:digit:]]{2}" | sort -ru | head -n 5)
}
function editions_arcolinux() {
echo large small
echo net plasma pro
}
function releases_artixlinux() {
@ -1619,9 +1621,11 @@ function get_archlinux() {
function get_arcolinux() {
local HASH=""
local ISO="arcolinux${EDITION:0:1}-${RELEASE}-x86_64.iso"
local URL="https://mirror.accum.se/mirror/arcolinux.info/iso/${RELEASE}"
HASH=$(web_pipe "${URL}/${ISO}.sha1" | cut -d' ' -f1)
local ISO=""
local URL=""
URL="https://mirror.accum.se/mirror/arcolinux.info/iso/${RELEASE}"
ISO="arco${EDITION}-${RELEASE}-x86_64.iso"
HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}