refactor: update ghostbsd to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:01:55 +01:00 committed by Martin Wimpress
parent 35a80ef6b9
commit 5dd44c6fe5
1 changed files with 1 additions and 1 deletions

View File

@ -2224,7 +2224,7 @@ function get_ghostbsd() {
mate) ISO="GhostBSD-${RELEASE}.iso";; mate) ISO="GhostBSD-${RELEASE}.iso";;
xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";; xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";;
esac esac
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }