refactor: make releases_slitaz() dynamic

This commit is contained in:
Martin Wimpress 2024-04-28 03:27:06 +01:00 committed by Martin Wimpress
parent d214ac5e14
commit 777f451fe2
1 changed files with 1 additions and 5 deletions

View File

@ -1025,7 +1025,7 @@ function releases_slint() {
}
function releases_slitaz() {
echo preferred core core64 loram core-5in1 preinit
echo $(web_pipe "http://mirror.slitaz.org/iso/rolling/" | grep "class='iso'" | cut -d"'" -f4 | cut -d'-' -f3- | grep iso | cut -d'.' -f1 | sort -u)
}
function releases_solus() {
@ -2404,10 +2404,6 @@ function get_slitaz() {
local HASH=""
local ISO="slitaz-rolling-${RELEASE}"
local URL="http://mirror.slitaz.org/iso/rolling"
case ${RELEASE} in
preferred) ISO="slitaz-rolling";;
*) ISO="slitaz-rolling-${RELEASE}";;
esac
HASH=$(web_pipe "${URL}/${ISO}.md5" | cut_1)
echo "${URL}/${ISO}.iso ${HASH}"
}