refactor: update openbsd to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:11:47 +01:00 committed by Martin Wimpress
parent 6c95750fe2
commit fc95daed9f
1 changed files with 1 additions and 1 deletions

View File

@ -2543,7 +2543,7 @@ function get_openbsd() {
local HASH=""
local ISO="install${RELEASE//\./}.iso"
local URL="https://mirror.leaseweb.com/pub/OpenBSD/${RELEASE}/amd64"
HASH=$(wget -q -O- "${URL}/SHA256" | grep "${ISO}" | cut -d' ' -f4)
HASH=$(web_pipe "${URL}/SHA256" | grep "${ISO}" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}"
}