refactor: update biglinux to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 14:11:20 +01:00 committed by Martin Wimpress
parent af7eb4ab65
commit 607afdd004
1 changed files with 4 additions and 4 deletions

View File

@ -1870,10 +1870,10 @@ function get_athenaos() {
function get_biglinux() {
local HASH=""
local 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' <(wget -q -O- ${URL}) | sort -u | tail -n2 | head -n1)
HASH=$(curl -s ${URL}${ISO}.md5 | grep -Eo '[[:alnum:]]{32}')
echo "${URL}${ISO} ${HASH}"
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}"
}
function get_bunsenlabs() {