quickemu/actions/biglinux

26 lines
1003 B
Plaintext

# Template file for 'biglinux'
OSNAME="biglinux"
PRETTY="BigLinux"
BASEDOF="Manjaro"
HOMEPAGE="https://www.biglinux.com.br"
DESCRIPTION="Is the right choice if you want to have an easy and enriching experience with Linux. It has been perfected over more than 19 years, following our motto: 'In search of the perfect system'"
CREDENTIALS="-"
function releases_() {
#shellcheck disable=SC2046,SC2005
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 | head -n 1)
}
function editions_() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://iso.biglinux.com.br" | grep -Eo "biglinux_$(releases_)_k[0-9]{2,3}.iso" | cut -d'_' -f3 | cut -d'.' -f1 | sort -Vru)
}
function get_() {
local HASH=""
local ISO="biglinux_${RELEASE}_${EDITION}.iso"
local URL="https://iso.biglinux.com.br"
HASH=$(web_pipe "${URL}/${ISO}.md5" | grep -Eo '[[:alnum:]]{32}')
echo "${URL}/${ISO} ${HASH}"
}