fix: get sparky info from mirror

This commit is contained in:
Phil Clifford 2024-08-04 02:57:33 +01:00 committed by Martin Wimpress
parent 1f0dc50194
commit 75bd81d1e9
1 changed files with 7 additions and 2 deletions

View File

@ -991,12 +991,17 @@ function editions_solus() {
function releases_sparkylinux() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f3 | sort -ru)
echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep -E -o "sparkylinux-.*\.iso\"" | cut -d'-' -f2 | sort -ru)
}
function editions_sparkylinux() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f5 | cut -d'.' -f 1 | sort -u)
if [ -z "${RELEASE}" ]; then
echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep -E -o "sparkylinux-.*\.iso\"" | cut -d'-' -f4 | cut -d'.' -f1 | sort -u)
else
echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep -E -o "sparkylinux-${RELEASE}-.*\.iso\"" | cut -d'-' -f4 | cut -d'.' -f1 | sort -u)
fi
}
function releases_spirallinux() {