refactor: update freebsd to use web_pipe() and correct order

This commit is contained in:
Martin Wimpress 2024-04-20 10:14:17 +01:00 committed by Martin Wimpress
parent 2b3a2997a6
commit 0f22368cfb
1 changed files with 1 additions and 1 deletions

View File

@ -981,7 +981,7 @@ function editions_fedora() {
}
function releases_freebsd(){
local FBSD_RELEASES=$(curl -sL https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/|grep -e 'class="link"' |grep -v '\.\.'|cut -d\" -f4|tr -d '/' | tr '\n' ' ')
local FBSD_RELEASES=$(web_pipe "https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/" |grep -e 'class="link"' |grep -v '\.\.'|cut -d\" -f4|tr -d '/' | sort -r | tr '\n' ' ')
echo "${FBSD_RELEASES}"
}