fix: update debian with web_pipe(), correct output and ignore NEVER_RELEASED
This commit is contained in:
parent
5cb578acc6
commit
f94e975029
4
quickget
4
quickget
|
@ -907,8 +907,8 @@ function releases_crunchbang++() {
|
|||
|
||||
function releases_debian() {
|
||||
local DEBOLD
|
||||
DEBCURRENT=$(wget -q https://cdimage.debian.org/debian-cd/ -O- | grep '\.[0-9]/' | cut -d\> -f9 | cut -d\/ -f1)
|
||||
DEBOLD=$(wget -q https://cdimage.debian.org/cdimage/archive/ -O- | grep -e '>[1-9][0-9]\.' | grep -v 'live' | cut -d\> -f9 | cut -d'/' -f1 | tac)
|
||||
DEBCURRENT=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
|
||||
DEBOLD=$(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)
|
||||
echo -n "${DEBCURRENT} "
|
||||
echo ${DEBOLD}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue