This commit is contained in:
zenobit 2025-04-12 00:28:47 +02:00
parent f04b72ceca
commit 69701a7622
2 changed files with 17 additions and 17 deletions

View File

@ -8,8 +8,7 @@ DESCRIPTION="General purpose operating system. Its package system allows you to
CREDENTIALS="anon:voidlinux root:voidlinux"
function releases_() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://repo-default.voidlinux.org/live/" | grep "^<a href=\"2" | cut -d'"' -f2 | tr -d '/' | sort -ru | head -n 3)
echo current
}
function editions_() {
@ -20,13 +19,14 @@ function get_() {
local DATE=""
local HASH=""
local ISO=""
local URL="https://repo-default.voidlinux.org/live"
local URL="https://repo-default.voidlinux.org/live/current"
DATE=$(web_pipe "$URL" | grep "^<a href=\"void-live-x86_64-" | cut -d'-' -f5 | tail -1)
case ${EDITION} in
glibc) ISO="void-live-x86_64-${RELEASE}-base.iso";;
musl) ISO="void-live-x86_64-musl-${RELEASE}-base.iso";;
xfce-glibc) ISO="void-live-x86_64-${RELEASE}-xfce.iso";;
xfce-musl) ISO="void-live-x86_64-musl-${RELEASE}-xfce.iso";;
glibc) ISO="void-live-x86_64-${DATE}-base.iso";;
musl) ISO="void-live-x86_64-musl-${DATE}-base.iso";;
xfce-glibc) ISO="void-live-x86_64-${DATE}-xfce.iso";;
xfce-musl) ISO="void-live-x86_64-musl-${DATE}-xfce.iso";;
esac
HASH="$(web_pipe "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f4)"
echo "${URL}/${RELEASE}/${ISO} ${HASH}"
echo "${URL}/${ISO} ${HASH}"
}

View File

@ -7,12 +7,11 @@ HOMEPAGE="https://voidlinux.org"
CREDENTIALS="anon:voidlinux root:voidlinux"
RELEASES="20250401 20250202 20240314"
RELEASES="current"
EDITIONS="xfce-musl xfce-glibc musl glibc"
function releases_() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://repo-default.voidlinux.org/live/" | grep "^<a href=\"2" | cut -d'"' -f2 | tr -d '/' | sort -ru | head -n 3)
echo current
}
function editions_() {
@ -23,14 +22,15 @@ function get_() {
local DATE=""
local HASH=""
local ISO=""
local URL="https://repo-default.voidlinux.org/live"
local URL="https://repo-default.voidlinux.org/live/current"
DATE=$(web_pipe "$URL" | grep "^<a href=\"void-live-x86_64-" | cut -d'-' -f5 | tail -1)
case ${EDITION} in
glibc) ISO="void-live-x86_64-${RELEASE}-base.iso";;
musl) ISO="void-live-x86_64-musl-${RELEASE}-base.iso";;
xfce-glibc) ISO="void-live-x86_64-${RELEASE}-xfce.iso";;
xfce-musl) ISO="void-live-x86_64-musl-${RELEASE}-xfce.iso";;
glibc) ISO="void-live-x86_64-${DATE}-base.iso";;
musl) ISO="void-live-x86_64-musl-${DATE}-base.iso";;
xfce-glibc) ISO="void-live-x86_64-${DATE}-xfce.iso";;
xfce-musl) ISO="void-live-x86_64-musl-${DATE}-xfce.iso";;
esac
HASH="$(web_pipe "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f4)"
echo "${URL}/${RELEASE}/${ISO} ${HASH}"
echo "${URL}/${ISO} ${HASH}"
}