From e96e90ebc72e0d78a62ef8257b74c81a0fffd205 Mon Sep 17 00:00:00 2001 From: zenobit Date: Tue, 16 Jan 2024 13:19:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=80=20EndeavourOS=20dynamic=20releases?= =?UTF-8?q?=20Thanks=20to=20@lj3954?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zenobit --- quickget | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/quickget b/quickget index f399499..df48aa4 100755 --- a/quickget +++ b/quickget @@ -609,14 +609,8 @@ function releases_elementary() { } function releases_endeavouros() { - echo apollo_22_1 \ - artemis-22_6 \ - artemis_neo_22_7 \ - artemis_neo_22_8 \ - artemis_nova_22_9 \ - atlantis-21_4 \ - atlantis_neo-21_5 \ - cassini_22_12 + local ENDEAVOUR_RELEASES="$(curl -s https://mirror.alpix.eu/endeavouros/iso/ | LC_ALL="en_US.UTF-8" sort -Mr | grep -o -P '(?<=)' | grep -v 'x86_64' | cut -c 13-)" + echo ${ENDEAVOUR_RELEASES,,} } function releases_endless() { @@ -1785,9 +1779,10 @@ function get_elementary() { function get_endeavouros() { local HASH="" - # Endeavour release names are Capitalized and our $RELEASE is forced to lowercase so we have to revert it - local ISO="EndeavourOS_${RELEASE@u}.iso" - local URL="https://github.com/endeavouros-team/ISO/releases/download/1-EndeavourOS-ISO-releases-archive" + local URL="https://mirror.alpix.eu/endeavouros/iso" + # Find EndeavourOS releases from mirror, pick one matching release + local ENDEAVOUR_RELEASES="$(curl -s "${URL}"/ | grep -o -P '(?<=)' | grep -v 'x86_64')" + local ISO="$(echo "${ENDEAVOUR_RELEASES}" | grep -i ${RELEASE}).iso" HASH=$(wget -q -O- "${URL}/${ISO}.sha512sum" | cut -d' ' -f1) echo "${URL}/${ISO} ${HASH}"