From 96ba1f8f9bbd532a00b3a6a2acaa7cdc226ee580 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sun, 14 Apr 2024 02:21:30 +0200 Subject: [PATCH] fix: multiple distros now have also releases on 1 line --- quickget | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/quickget b/quickget index 2bcde39..95c460f 100755 --- a/quickget +++ b/quickget @@ -706,8 +706,8 @@ function releases_devuan() { function releases_dragonflybsd() { # If you remove "".bz2" from the end of the searched URL, you will get only the current release - currently 6.4.0 # We could add a variable so this behaviour is optional/switchable (maybe from option or env) - DBSD_RELEASES=$(curl -sL http://mirror-master.dragonflybsd.org/iso-images/| grep -E -o '"dfly-x86_64-.*_REL.iso.bz2"' | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' ) - echo $DBSD_RELEASES + DBSD_RELEASES=$(curl -sL http://mirror-master.dragonflybsd.org/iso-images/ | grep -E -o '"dfly-x86_64-.*_REL.iso.bz2"' | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' | tr '\n' ' ') + echo "$DBSD_RELEASES" } function releases_easyos() { @@ -724,8 +724,8 @@ function releases_elementary() { } function releases_endeavouros() { - local ENDEAVOUR_RELEASES="$(curl -s https://mirror.alpix.eu/endeavouros/iso/ | LC_ALL="en_US.UTF-8" sort -Mr | grep -o -P '(?<=)' | grep -v 'x86_64' | cut -c 13-)" - echo ${ENDEAVOUR_RELEASES,,} + local ENDEAVOUR_RELEASES="$(curl -s https://mirror.alpix.eu/endeavouros/iso/ | LC_ALL="en_US.UTF-8" sort -Mr | grep -o -P '(?<=)' | grep -v 'x86_64' | cut -c 13- | tr '\n' ' ')" + echo "${ENDEAVOUR_RELEASES,,}" } function releases_endless() { @@ -763,8 +763,8 @@ function editions_fedora() { } function releases_freebsd(){ - local FBSD_RELEASES=$(curl -sL https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/|grep -e 'class="link"' |grep -v '\.\.'|cut -d\" -f4|tr -d '/') - echo ${FBSD_RELEASES} + local FBSD_RELEASES=$(curl -sL https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/|grep -e 'class="link"' |grep -v '\.\.'|cut -d\" -f4|tr -d '/' | tr '\n' ' ') + echo "${FBSD_RELEASES}" } function editions_freebsd(){ @@ -800,8 +800,9 @@ function editions_ghostbsd() { } function releases_gnomeos() { - local GNOMEOS_RELEASES=$(curl -s https://download.gnome.org/gnomeos/ | grep -o -P '(?<=