refactor: update draginflybsd to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 14:17:17 +01:00 committed by Martin Wimpress
parent f7c88e12ba
commit d0c5d83cbb
1 changed files with 1 additions and 1 deletions

View File

@ -2063,7 +2063,7 @@ function get_dragonflybsd() {
local HASH=""
local ISO="dfly-x86_64-${RELEASE}_REL.iso.bz2"
local URL="http://mirror-master.dragonflybsd.org/iso-images"
HASH=$(wget -q -O- "${URL}/md5.txt" | grep "(${ISO})" | cut -d' ' -f4)
HASH=$(web_pipe "${URL}/md5.txt" | grep "(${ISO})" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}"
}