refactor: update parrot to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:13:26 +01:00 committed by Martin Wimpress
parent 5eb4b39c81
commit 57b55f5e22

View File

@ -2598,8 +2598,8 @@ function get_parrotsec() {
local URL=""
ISO="Parrot-${EDITION}-${RELEASE}_amd64.iso"
URL="https://download.parrot.sh/parrot/iso/${RELEASE}"
HASH="$(wget -q -O- ${URL}/signed-hashes.txt | grep ${ISO} | cut -d' ' -f1)"
echo "${URL}/${ISO}" "${HASH}"
HASH="$(web_pipe "${URL}/signed-hashes.txt" | grep "${ISO}" | cut_1)"
echo "${URL}/${ISO} ${HASH}"
}
function get_peppermint() {