chore: Move get_blendos function
This commit is contained in:
parent
a2b6250680
commit
7a88eab9af
17
quickget
17
quickget
|
@ -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=""
|
||||||
|
|
Loading…
Reference in New Issue