Skip to content

Commit

Permalink
fix: dynamic grep latest MX linux and sort Kolibri (#1479)
Browse files Browse the repository at this point in the history
* Fix: add dynamic grep for latest MX linux releases
* add quick fix for kolibri url
* add Kolibri editions and 7zip extraction
  • Loading branch information
TuxVinyards authored Oct 19, 2024
1 parent 3de28e1 commit 9d4b82d
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,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 @@ -819,7 +823,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 @@ -1913,8 +1918,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 @@ -3278,6 +3283,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

0 comments on commit 9d4b82d

Please sign in to comment.