fix: multiple distros now have also releases on 1 line
This commit is contained in:
parent
005d2b2d1b
commit
96ba1f8f9b
25
quickget
25
quickget
|
@ -706,8 +706,8 @@ function releases_devuan() {
|
||||||
function releases_dragonflybsd() {
|
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
|
# 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)
|
# 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
|
echo "$DBSD_RELEASES"
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_easyos() {
|
function releases_easyos() {
|
||||||
|
@ -724,8 +724,8 @@ function releases_elementary() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_endeavouros() {
|
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,,}
|
echo "${ENDEAVOUR_RELEASES,,}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_endless() {
|
function releases_endless() {
|
||||||
|
@ -763,8 +763,8 @@ function editions_fedora() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_freebsd(){
|
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}
|
echo "${FBSD_RELEASES}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function editions_freebsd(){
|
function editions_freebsd(){
|
||||||
|
@ -800,8 +800,9 @@ function editions_ghostbsd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_gnomeos() {
|
function releases_gnomeos() {
|
||||||
local GNOMEOS_RELEASES=$(curl -s https://download.gnome.org/gnomeos/ | grep -o -P '(?<=<a href=").*(?=/" title=")' | sort -nr)
|
local GNOMEOS_RELEASES=""
|
||||||
echo nightly ${GNOMEOS_RELEASES}
|
GNOMEOS_RELEASES="$(curl -s https://download.gnome.org/gnomeos/ | grep -o -P '(?<=<a href=").*(?=/" title=")' | sort -nr | tr '\n' ' ')"
|
||||||
|
echo nightly "${GNOMEOS_RELEASES}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_guix() {
|
function releases_guix() {
|
||||||
|
@ -892,8 +893,8 @@ function releases_netboot() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_netbsd() {
|
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}
|
echo "${NBSD_RELEASES}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_nitrux() {
|
function releases_nitrux() {
|
||||||
|
@ -909,8 +910,8 @@ function editions_nixos(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_openbsd(){
|
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}
|
echo "${OBSD_RELEASES}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_openindiana(){
|
function releases_openindiana(){
|
||||||
|
|
Loading…
Reference in New Issue