Skip to content

Commit

Permalink
fix: releases on 1 line
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Apr 14, 2024
1 parent 4360fdd commit 844df6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ 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:]]+' )
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"
}

Expand All @@ -704,7 +704,7 @@ 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 '(?<=<a href=").*(?=.iso">)' | grep -v 'x86_64' | cut -c 13-)"
local ENDEAVOUR_RELEASES="$(curl -s https://mirror.alpix.eu/endeavouros/iso/ | LC_ALL="en_US.UTF-8" sort -Mr | grep -o -P '(?<=<a href=").*(?=.iso">)' | grep -v 'x86_64' | cut -c 13- | tr '\n' ' ')"
echo "${ENDEAVOUR_RELEASES,,}"
}

Expand Down Expand Up @@ -739,7 +739,7 @@ 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 '/')
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}"
}

Expand Down Expand Up @@ -777,7 +777,7 @@ function editions_ghostbsd() {

function releases_gnomeos() {
local GNOMEOS_RELEASES=""
GNOMEOS_RELEASES="$(curl -s https://download.gnome.org/gnomeos/ | grep -o -P '(?<=<a href=").*(?=/" title=")' | sort -nr)"
GNOMEOS_RELEASES="$(curl -s https://download.gnome.org/gnomeos/ | grep -o -P '(?<=<a href=").*(?=/" title=")' | sort -nr | tr '\n' ' ')"
echo nightly "${GNOMEOS_RELEASES}"
}

Expand Down Expand Up @@ -869,7 +869,7 @@ function releases_netboot() {
}

function releases_netbsd() {
local NBSD_RELEASES=$(curl -sL http://cdn.netbsd.org/pub/NetBSD/iso/ | grep -o -E '"[[:digit:]]+\.[[:digit:]]+/"' |tr -d '"/' |sort -nr )
local NBSD_RELEASES=$(curl -sL http://cdn.netbsd.org/pub/NetBSD/iso/ | grep -o -E '"[[:digit:]]+\.[[:digit:]]+/"' | tr -d '"/' | sort -nr | tr '\n' ' ')
echo "${NBSD_RELEASES}"
}

Expand All @@ -886,7 +886,7 @@ function editions_nixos(){
}

function releases_openbsd(){
local OBSD_RELEASES=$(curl -sL https://mirror.leaseweb.com/pub/OpenBSD/|grep -e '6\.[8-9]/' -e '[7-9]\.'|cut -d\" -f4|tr -d '/')
local OBSD_RELEASES=$(curl -sL https://mirror.leaseweb.com/pub/OpenBSD/ | grep -e '6\.[8-9]/' -e '[7-9]\.' | cut -d\" -f4 | tr -d '/' | tr '\n' ' ')
echo "${OBSD_RELEASES}"
}

Expand Down

0 comments on commit 844df6c

Please sign in to comment.