refactor: update netbsd to use web_pipe()

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

View File

@ -1105,7 +1105,7 @@ function releases_netboot() {
} }
function releases_netbsd() { function releases_netbsd() {
local NBSD_RELEASES=$(curl -sL http://cdn.netbsd.org/pub/NetBSD/iso/ | grep -o -E '"[[:digit:]]+\.[[:digit:]]+/"' | tr -d '"/' | sort -nr | tr '\n' ' ') local NBSD_RELEASES=$(web_pipe "http://cdn.netbsd.org/pub/NetBSD/iso/" | grep -o -E '"[[:digit:]]+\.[[:digit:]]+/"' | tr -d '"/' | sort -nr | tr '\n' ' ')
echo "${NBSD_RELEASES}" echo "${NBSD_RELEASES}"
} }