refactor: update endeavouros to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-20 10:13:38 +01:00 committed by Martin Wimpress
parent 03d905435d
commit 2b3a2997a6
1 changed files with 1 additions and 1 deletions

View File

@ -946,7 +946,7 @@ function releases_elementary() {
} }
function releases_endeavouros() { function releases_endeavouros() {
local ENDEAVOUR_RELEASES="$(curl -s https://mirror.alpix.eu/endeavouros/iso/ | LC_ALL="en_US.UTF-8" sort -Mr | grep -o -P '(?<=<a href=").*(?=.iso">)' | grep -v 'x86_64' | cut -c 13- | tr '\n' ' ')" local ENDEAVOUR_RELEASES="$(web_pipe "https://mirror.alpix.eu/endeavouros/iso/" | LC_ALL="en_US.UTF-8" sort -Mr | grep -o -P '(?<=<a href=").*(?=.iso">)' | grep -v 'x86_64' | cut -c 13- | head -n 5 | tr '\n' ' ')"
echo "${ENDEAVOUR_RELEASES,,}" echo "${ENDEAVOUR_RELEASES,,}"
} }