fix: make revised batocera actually find the latest file

This commit is contained in:
Phil Clifford 2023-11-11 03:53:32 +00:00 committed by Martin Wimpress
parent b05dd50aea
commit 7bee31c666
1 changed files with 1 additions and 16 deletions

View File

@ -1321,22 +1321,7 @@ function get_batocera() {
local HASH=""
local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/last"
local ISO="$(curl -sl ${URL}/ | grep -e 'batocera.*img.gz'|cut -d\" -f2)"
local CURRENT_RELEASE=$(echo "${ISO}"| cut -d\- -f3)
case ${RELEASE} in
${CURRENT_RELEASE}) #Current release
URL+=""
;;
*)
URL+="/archives/${RELEASE}"
ISO="$(curl -sl ${URL}/ | grep -e 'batocera.*img.gz'|cut -d\" -f2)"
;; # non-current are here
esac
echo "${URL}/${ISO} ${HASH}"
echo "${URL}/${ISO} ${HASH}"
}
function get_bodhi() {