Fix OpenSuse Leap 16.0 Not yet available

This commit is contained in:
zenobit 2025-03-03 11:16:00 +01:00
parent db2cd30e6e
commit cad8568a68
2 changed files with 15 additions and 5 deletions

View File

@ -7,8 +7,13 @@ DESCRIPTION="The makers choice for sysadmins, developers and desktop users"
CREDENTIALS="-"
function releases_() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://download.opensuse.org/distribution/leap/" | grep 'class="name"' | cut -d '/' -f2 | grep -v 42 | sort -r) aeon microos tumbleweed
# shellcheck disable=SC2046,SC2005
# Leap have 16.0 dir but no iso file nor iso dir there
if web_pipe "https://download.opensuse.org/distribution/leap/16.0/" | grep -q 'href="iso/"'; then
echo $(web_pipe "https://download.opensuse.org/distribution/leap/" | grep 'class="name"' | cut -d '/' -f2 | grep -v 42 | sort -r | tail --lines +2) aeon microos tumbleweed
else
echo tumbleweed microos aeon 15.6 15.5 15.4 15.3 15.2 15.1 15.0
fi
}
function get_() {

View File

@ -7,12 +7,17 @@ HOMEPAGE="https://www.opensuse.org"
CREDENTIALS="-"
RELEASES="tumbleweed microos aeon 16.0 15.6 15.5 15.4 15.3 15.2 15.1 15.0"
RELEASES="tumbleweed microos aeon 15.6 15.5 15.4 15.3 15.2 15.1 15.0"
function releases_() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://download.opensuse.org/distribution/leap/" | grep 'class="name"' | cut -d '/' -f2 | grep -v 42 | sort -r) aeon microos tumbleweed
# shellcheck disable=SC2046,SC2005
# Leap have 16.0 dir but no iso file nor iso dir there
if web_pipe "https://download.opensuse.org/distribution/leap/16.0/" | grep -q 'href="iso/"'; then
echo $(web_pipe "https://download.opensuse.org/distribution/leap/" | grep 'class="name"' | cut -d '/' -f2 | grep -v 42 | sort -r | tail --lines +2) aeon microos tumbleweed
else
echo tumbleweed microos aeon 15.6 15.5 15.4 15.3 15.2 15.1 15.0
fi
}
function get_() {