refactor: simplify releases_sparkylinux() and editions_sparkylinux()

This commit is contained in:
Martin Wimpress 2024-04-28 03:21:35 +01:00 committed by Martin Wimpress
parent 3099d7e96d
commit 12b03d0fde
1 changed files with 2 additions and 4 deletions

View File

@ -1036,13 +1036,11 @@ function editions_solus() {
} }
function releases_sparkylinux() { function releases_sparkylinux() {
web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f3 | sort -ru | tr '\n' ' ' echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f3 | sort -ru | tr '\n' ' ')
echo
} }
function editions_sparkylinux() { 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 $(web_pipe "https://sparkylinux.org/download/stable/" | grep "ISO image" | cut -d'-' -f5 | cut -d'.' -f 1 | sort -u | tr '\n' ' ')
echo
} }
function releases_spirallinux() { function releases_spirallinux() {