refactor: simplify releases_openbsd()
This commit is contained in:
parent
7ff266466c
commit
0f3196ad45
3
quickget
3
quickget
|
@ -915,8 +915,7 @@ function editions_nixos(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_openbsd(){
|
function releases_openbsd(){
|
||||||
local OBSD_RELEASES=$(web_pipe "https://mirror.leaseweb.com/pub/OpenBSD/" | grep -e '6\.[8-9]/' -e '[7-9]\.' | cut -d\" -f4 | tr -d '/' | sort -r | tr '\n' ' ')
|
echo $(web_pipe "https://mirror.leaseweb.com/pub/OpenBSD/" | grep -e '6\.[8-9]/' -e '[7-9]\.' | cut -d\" -f4 | tr -d '/' | sort -r | tr '\n' ' ')
|
||||||
echo "${OBSD_RELEASES}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_openindiana(){
|
function releases_openindiana(){
|
||||||
|
|
Loading…
Reference in New Issue