refactor: update gnomeos to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-20 10:17:39 +01:00 committed by Martin Wimpress
parent 8e14a580c4
commit 139601d024
1 changed files with 1 additions and 1 deletions

View File

@ -1020,7 +1020,7 @@ function editions_ghostbsd() {
function releases_gnomeos() { function releases_gnomeos() {
local GNOMEOS_RELEASES="" local GNOMEOS_RELEASES=""
GNOMEOS_RELEASES="$(curl -s https://download.gnome.org/gnomeos/ | grep -o -P '(?<=<a href=").*(?=/" title=")' | sort -nr | tr '\n' ' ')" GNOMEOS_RELEASES="$(web_pipe "https://download.gnome.org/gnomeos/" | grep -o -P '(?<=<a href=").*(?=/" title=")' | sort -nr | tr '\n' ' ')"
echo nightly "${GNOMEOS_RELEASES}" echo nightly "${GNOMEOS_RELEASES}"
} }