refactor(debian): only return the latest releases from each release
This commit is contained in:
parent
5e96af3eca
commit
1e7714a1af
14
quickget
14
quickget
|
@ -697,12 +697,20 @@ function releases_crunchbang++() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_debian() {
|
function releases_debian() {
|
||||||
|
local ARCHIVE=""
|
||||||
|
local MAJ=""
|
||||||
local NEW=""
|
local NEW=""
|
||||||
local OLD=""
|
local OLD=""
|
||||||
NEW=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
|
NEW=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
|
||||||
OLD=$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep -e '>[1-9][0-9]\.' | grep -v 'live' | grep -v NEVER | cut -d'>' -f 9 | cut -d'/' -f 1 | tac | head -20)
|
echo -n "${NEW}"
|
||||||
#shellcheck disable=SC2086
|
MAJ=$(echo "${NEW}" | cut -d'.' -f 1)
|
||||||
echo ${NEW} ${OLD}
|
ARCHIVE="$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep folder | grep -v NEVER | cut -d'"' -f 6)"
|
||||||
|
for i in {1..2}; do
|
||||||
|
CUR=$((MAJ - i))
|
||||||
|
OLD=$(grep ^"${CUR}" <<< "${ARCHIVE}" | tail -n 1 | tr -d '/')
|
||||||
|
echo -n " ${OLD}"
|
||||||
|
done
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
function editions_debian() {
|
function editions_debian() {
|
||||||
|
|
Loading…
Reference in New Issue