Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dynamic grep latest MX linux and sort Kolibri #1479

Merged
21 changes: 18 additions & 3 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,10 @@ function releases_kolibrios() {
echo latest
}

function editions_kolibrios() {
echo en_US ru_RU it_IT es_ES
}

function releases_linuxlite() {
echo 6.6 6.4 6.2 6.0
}
Expand Down Expand Up @@ -823,7 +827,8 @@ function releases_manjaro() {
}

function releases_mxlinux() {
echo 23.3
# needs header, so not web_pipe:
curl -Ils "https://sourceforge.net/projects/mx-linux/files/latest/download" | grep -i 'location:' | cut -d? -f1 | cut -d_ -f1 | cut -d- -f3
}

function editions_mxlinux() {
Expand Down Expand Up @@ -1919,8 +1924,8 @@ function get_kdeneon() {

function get_kolibrios() {
local HASH=""
local ISO="kolibri.iso"
local URL="https://builds.kolibrios.org/eng"
local ISO="latest-iso.7z"
local URL="http://builds.kolibrios.org/${EDITION}"
echo "${URL}/${ISO} ${HASH}"
}

Expand Down Expand Up @@ -3284,6 +3289,16 @@ function create_vm() {
rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
fi;;
kolibrios)
if [[ ${ISO} = *".7z" ]]; then
if [ -z "$(command -v 7z)" ]; then echo "ERROR! '7zip' needs installing. Unable to extract file."
else
7z e "${VM_PATH}/${ISO}" -o"${VM_PATH}" >/dev/null 2>&1
rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
ISO="$(basename "${ISO}")"
fi
fi;;
reactos)
if [[ ${ISO} = *".zip"* ]]; then
unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}"
Expand Down