Refactor Void Linux support to add editions
This commit is contained in:
parent
6e92a8e0d9
commit
8924d5cac4
22
quickget
22
quickget
@ -455,9 +455,13 @@ function releases_ubuntu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function releases_void() {
|
function releases_void() {
|
||||||
echo base \
|
echo current
|
||||||
|
}
|
||||||
|
|
||||||
|
function editions_void() {
|
||||||
|
echo glibc \
|
||||||
musl \
|
musl \
|
||||||
xfce \
|
xfce-glibc \
|
||||||
xfce-musl
|
xfce-musl
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1081,16 +1085,20 @@ function get_openbsd() {
|
|||||||
|
|
||||||
function get_void() {
|
function get_void() {
|
||||||
local DATE=""
|
local DATE=""
|
||||||
|
local EDITION=""
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL="https://alpha.de.repo.voidlinux.org/live/current"
|
local URL="https://alpha.de.repo.voidlinux.org/live/current"
|
||||||
|
|
||||||
DATE=$(wget -q -O- "${URL}/sha256sum.txt" | head -n1 | cut -d'.' -f1 | cut -d'-' -f4)
|
DATE=$(wget -q -O- "${URL}/sha256sum.txt" | head -n1 | cut -d'.' -f1 | cut -d'-' -f4)
|
||||||
case ${RELEASE} in
|
if [ -n "${1}" ]; then
|
||||||
base) ISO="void-live-x86_64-${DATE}.iso";;
|
EDITION="${1}"
|
||||||
musl) ISO="void-live-x86_64-musl-${DATE}.iso";;
|
fi
|
||||||
xfce) ISO="void-live-x86_64-${DATE}-xfce.iso";;
|
case ${EDITION} in
|
||||||
xfce-musl) ISO="void-live-x86_64-musl-${DATE}-xfce.iso";;
|
glibc) ISO="void-live-x86_64-${DATE}.iso";;
|
||||||
|
musl) ISO="void-live-x86_64-musl-${DATE}.iso";;
|
||||||
|
xfce-glibc) ISO="void-live-x86_64-${DATE}-xfce.iso";;
|
||||||
|
xfce-musl) ISO="void-live-x86_64-musl-${DATE}-xfce.iso";;
|
||||||
esac
|
esac
|
||||||
HASH="$(wget -q -O- "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f4)"
|
HASH="$(wget -q -O- "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f4)"
|
||||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||||
|
Loading…
Reference in New Issue
Block a user