mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
fix: make revised batocera actually find the latest file
This commit is contained in:
parent
b05dd50aea
commit
7bee31c666
1 changed files with 1 additions and 16 deletions
17
quickget
17
quickget
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue