From 41264636ea3464421a4107a861db833895bb98d9 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 20 Apr 2024 17:44:18 +0100 Subject: [PATCH] refactor: make biglinux releases and editions dynamic --- quickget | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index 7420fe6..fbd85c9 100755 --- a/quickget +++ b/quickget @@ -822,7 +822,11 @@ function releases_bazzite() { } 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() { @@ -1850,9 +1854,8 @@ function get_athenaos() { function get_biglinux() { local HASH="" - local ISO="" + local ISO="biglinux_${RELEASE}_${EDITION}.iso" 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}') echo "${URL}/${ISO} ${HASH}" }