refactor: update freebsd to use web_pipe() and correct order
This commit is contained in:
parent
2b3a2997a6
commit
0f22368cfb
2
quickget
2
quickget
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue