refactor: update netbsd to use web_pipe()
This commit is contained in:
parent
7fb1400c7e
commit
a2c3181191
2
quickget
2
quickget
|
@ -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}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue