chore: Move get_blendos function

This commit is contained in:
zen0bit 2024-04-21 08:13:41 +02:00 committed by Martin Wimpress
parent a2b6250680
commit 7a88eab9af
1 changed files with 10 additions and 7 deletions

View File

@ -1829,13 +1829,6 @@ function get_biglinux() {
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }
function get_blendos() {
local HASH=""
local ISO="blendos-${RELEASE}-stable-${EDITION}.iso"
local URL="https://mirror.ico277.xyz/blendos/${EDITION}"
echo "${URL}/${ISO} ${HASH}"
}
function get_batocera() { function get_batocera() {
local HASH="" local HASH=""
local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/${RELEASE}" local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/${RELEASE}"
@ -1852,6 +1845,16 @@ function get_bazzite() {
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }
function get_blendos() {
local HASH=""
local URL=""
local latest_blendos_release
latest_blendos_release="$(grep "${EDITION}" /tmp/blendos-isos.rss | cut -d '/' -f 9 | sort -nr | head -n 1)"
URL=$(grep "${EDITION}/${latest_blendos_release}" /tmp/blendos-isos.rss | grep -E -o 'https://.*blendOS\.iso')
HASH=$(grep "${EDITION}/${latest_blendos_release}" /tmp/blendos-isos.rss | grep -E -o '[[:alnum:]]{32}')
echo "${URL} ${HASH}"
}
function get_bodhi() { function get_bodhi() {
local EDITION="${1:-}" local EDITION="${1:-}"
local HASH="" local HASH=""