refactor: make alpine dynamic and check for releases

This commit is contained in:
Martin Wimpress 2024-04-28 02:47:23 +01:00 committed by Martin Wimpress
parent f843448218
commit 761ae2bdd5
1 changed files with 7 additions and 1 deletions

View File

@ -601,7 +601,13 @@ function editions_alma() {
}
function releases_alpine() {
echo latest 3.19 3.18 3.17 3.16 3.15 3.14 3.13 3.12
local REL=""
local RELS=$(web_pipe "https://dl-cdn.alpinelinux.org/alpine/" | grep '"v' | cut -d'"' -f2 | tr -d / | sort -Vr | head -n 10)
for REL in ${RELS}; do
if web_check "https://dl-cdn.alpinelinux.org/alpine/${REL}/releases/x86_64/"; then
echo -n "${REL} "
fi
done
}
function releases_android() {