refactor: make biglinux releases and editions dynamic
This commit is contained in:
parent
89b2c7412e
commit
41264636ea
9
quickget
9
quickget
|
@ -822,7 +822,11 @@ function releases_bazzite() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_biglinux() {
|
function releases_biglinux() {
|
||||||
echo $(web_pipe "https://iso.biglinux.com.br/" | grep biglinux | grep iso | cut -d'_' -f2 | uniq | sort -r)
|
echo $(web_pipe "https://iso.biglinux.com.br" | grep -Eo 'biglinux_[0-9]{4}(-[0-9]{2}){2}_k[0-9]{2,3}.iso' | cut -d'_' -f2 | sort -ru)
|
||||||
|
}
|
||||||
|
|
||||||
|
function editions_biglinux() {
|
||||||
|
echo $(web_pipe "https://iso.biglinux.com.br" | grep -Eo 'biglinux_[0-9]{4}(-[0-9]{2}){2}_k[0-9]{2,3}.iso' | cut -d'_' -f3 | cut -d'.' -f1 | sort -ru)
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_blendos() {
|
function releases_blendos() {
|
||||||
|
@ -1850,9 +1854,8 @@ function get_athenaos() {
|
||||||
|
|
||||||
function get_biglinux() {
|
function get_biglinux() {
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO="biglinux_${RELEASE}_${EDITION}.iso"
|
||||||
local URL="https://iso.biglinux.com.br"
|
local URL="https://iso.biglinux.com.br"
|
||||||
ISO=$(grep -Eo 'biglinux_[0-9]{4}(-[0-9]{2}){2}_k[0-9]{2,3}.iso' <(web_pipe "${URL}") | sort -u | tail -n2 | head -n1)
|
|
||||||
HASH=$(web_pipe "${URL}/${ISO}.md5" | grep -Eo '[[:alnum:]]{32}')
|
HASH=$(web_pipe "${URL}/${ISO}.md5" | grep -Eo '[[:alnum:]]{32}')
|
||||||
echo "${URL}/${ISO} ${HASH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue