From 12b03d0fdeacf762788ef40c3255b027f10ffc15 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 28 Apr 2024 03:21:35 +0100 Subject: [PATCH] refactor: simplify releases_sparkylinux() and editions_sparkylinux() --- quickget | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/quickget b/quickget index c6d61ca..99562a5 100755 --- a/quickget +++ b/quickget @@ -1036,13 +1036,11 @@ function editions_solus() { } function releases_sparkylinux() { - web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f3 | sort -ru | tr '\n' ' ' - echo + echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f3 | sort -ru | tr '\n' ' ') } function editions_sparkylinux() { - web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f5 | cut -d'.' -f 1 | sort -u | tr '\n' ' ' - echo + echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f5 | cut -d'.' -f 1 | sort -u | tr '\n' ' ') } function releases_spirallinux() {