feat: make releases_batocera() dynamic

This commit is contained in:
Martin Wimpress 2024-04-21 09:45:13 +01:00 committed by Martin Wimpress
parent 0596f3b243
commit af7fe35742
1 changed files with 2 additions and 2 deletions

View File

@ -813,7 +813,7 @@ function releases_athenaos() {
} }
function releases_batocera() { function releases_batocera() {
echo latest echo $(web_pipe "https://mirrors.o2switch.fr/batocera/x86_64/stable/" | grep ^\<a | cut -d'"' -f2 | cut -d '/' -f1 | grep -v '\.' | sort -ru | tail +2 | head -n 5)
} }
function releases_bazzite() { function releases_bazzite() {
@ -1884,7 +1884,7 @@ function get_vanillaos() {
function get_batocera() { function get_batocera() {
local HASH="" local HASH=""
local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/last" local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/${RELEASE}"
local ISO="$(web_pipe "${URL}/" | grep -e 'batocera.*img.gz'| cut -d'"' -f2)" local ISO="$(web_pipe "${URL}/" | grep -e 'batocera.*img.gz'| cut -d'"' -f2)"
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }