refactor: update biglinux to use web_pipe()
This commit is contained in:
parent
af7eb4ab65
commit
607afdd004
8
quickget
8
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() {
|
||||
|
|
Loading…
Reference in New Issue