chore: preserve recent changes to get_blendos()

This commit is contained in:
Martin Wimpress 2024-04-21 13:59:04 +01:00 committed by Martin Wimpress
parent 0057b3fbee
commit eed65ddc81
1 changed files with 3 additions and 6 deletions

View File

@ -1670,12 +1670,9 @@ function get_biglinux() {
function get_blendos() { function get_blendos() {
local HASH="" local HASH=""
local URL="" local ISO="blendos-${RELEASE}-stable-${EDITION}.iso"
local latest_blendos_release local URL="https://mirror.ico277.xyz/blendos/${EDITION}"
latest_blendos_release="$(grep "${EDITION}" /tmp/blendos-isos.rss | cut -d '/' -f 9 | sort -nr | head -n 1)" echo "${URL}/${ISO} ${HASH}"
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() {