refactor: update openbsd to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-20 10:20:31 +01:00 committed by Martin Wimpress
parent a2c3181191
commit 8e87089a34
1 changed files with 1 additions and 1 deletions

View File

@ -1122,7 +1122,7 @@ function editions_nixos(){
}
function releases_openbsd(){
local OBSD_RELEASES=$(curl -sL https://mirror.leaseweb.com/pub/OpenBSD/ | grep -e '6\.[8-9]/' -e '[7-9]\.' | cut -d\" -f4 | tr -d '/' | tr '\n' ' ')
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 "${OBSD_RELEASES}"
}