From 7a88eab9af71d1eb2a67565318e6f4928f7b6861 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sun, 21 Apr 2024 08:13:41 +0200 Subject: [PATCH] chore: Move get_blendos function --- quickget | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/quickget b/quickget index dab3691..560be43 100755 --- a/quickget +++ b/quickget @@ -1829,13 +1829,6 @@ function get_biglinux() { 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() { local HASH="" local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/${RELEASE}" @@ -1852,6 +1845,16 @@ function get_bazzite() { 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() { local EDITION="${1:-}" local HASH=""