refactor: update netboot to use web_pipe()

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

View File

@ -2506,7 +2506,7 @@ function get_netboot() {
local ISO="netboot.xyz.iso" local ISO="netboot.xyz.iso"
local HASH="" local HASH=""
local URL="https://boot.netboot.xyz/ipxe" local URL="https://boot.netboot.xyz/ipxe"
HASH=$(wget -q -O- "${URL}/netboot.xyz-sha256-checksums.txt" | grep "${ISO}" | cut_1) HASH=$(web_pipe "${URL}/netboot.xyz-sha256-checksums.txt" | grep "${ISO}" | cut_1)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }