refactor: update netbsd to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:10:20 +01:00 committed by Martin Wimpress
parent 074796db4c
commit de79448b39
1 changed files with 1 additions and 1 deletions

View File

@ -2514,7 +2514,7 @@ function get_netbsd() {
local HASH="" local HASH=""
local ISO="NetBSD-${RELEASE}-amd64.iso" local ISO="NetBSD-${RELEASE}-amd64.iso"
local URL="https://cdn.netbsd.org/pub/NetBSD/NetBSD-${RELEASE}/images/" local URL="https://cdn.netbsd.org/pub/NetBSD/NetBSD-${RELEASE}/images/"
HASH=$(wget -q -O- "${URL}/MD5" | grep "${ISO}" | cut -d' ' -f4) HASH=$(web_pipe "${URL}/MD5" | grep "${ISO}" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }