From 75bd81d1e911fd17af06aed99d5a9fc34da706ea Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sun, 4 Aug 2024 02:57:33 +0100 Subject: [PATCH] fix: get sparky info from mirror --- quickget | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index a14cc16b0c..7738e65fa7 100755 --- a/quickget +++ b/quickget @@ -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() {