Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: releases on 1 line #1022

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,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() {
Expand All @@ -616,8 +616,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 '(?<=<a href=").*(?=.iso">)' | 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 '(?<=<a href=").*(?=.iso">)' | grep -v 'x86_64' | cut -c 13- | tr '\n' ' ')"
echo "${ENDEAVOUR_RELEASES,,}"
}

function releases_endless() {
Expand Down Expand Up @@ -655,8 +655,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(){
Expand Down Expand Up @@ -692,8 +692,9 @@ function editions_ghostbsd() {
}

function releases_gnomeos() {
local GNOMEOS_RELEASES=$(curl -s https://download.gnome.org/gnomeos/ | grep -o -P '(?<=<a href=").*(?=/" title=")' | sort -nr)
echo nightly ${GNOMEOS_RELEASES}
local 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() {
Expand Down Expand Up @@ -784,8 +785,8 @@ 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 )
echo ${NBSD_RELEASES}
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}"
}

function releases_nitrux() {
Expand All @@ -801,8 +802,8 @@ 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 '/')
echo ${OBSD_RELEASES}
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}"
}

function releases_openindiana(){
Expand Down