From 607afdd0045be4657cb19919e4d6ee6050d5a91c Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 14:11:20 +0100 Subject: [PATCH] refactor: update biglinux to use web_pipe() --- quickget | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quickget b/quickget index 8dc1e49..bc41df2 100755 --- a/quickget +++ b/quickget @@ -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() {