Skip to content

Commit

Permalink
fix: make revised batocera actually find the latest file
Browse files Browse the repository at this point in the history
  • Loading branch information
philclifford authored and flexiondotorg committed Nov 12, 2023
1 parent b05dd50 commit 7bee31c
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7bee31c

Please sign in to comment.