refactor: simplify releases_freebsd()

This commit is contained in:
Martin Wimpress 2024-04-28 03:08:58 +01:00 committed by Martin Wimpress
parent d111c44368
commit 6b95069304
1 changed files with 1 additions and 2 deletions

View File

@ -782,8 +782,7 @@ function editions_fedora() {
}
function releases_freebsd(){
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}"
echo $(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)
}
function editions_freebsd(){