refactor: update parrot to use web_pipe()
This commit is contained in:
parent
5eb4b39c81
commit
57b55f5e22
4
quickget
4
quickget
|
@ -2598,8 +2598,8 @@ function get_parrotsec() {
|
||||||
local URL=""
|
local URL=""
|
||||||
ISO="Parrot-${EDITION}-${RELEASE}_amd64.iso"
|
ISO="Parrot-${EDITION}-${RELEASE}_amd64.iso"
|
||||||
URL="https://download.parrot.sh/parrot/iso/${RELEASE}"
|
URL="https://download.parrot.sh/parrot/iso/${RELEASE}"
|
||||||
HASH="$(wget -q -O- ${URL}/signed-hashes.txt | grep ${ISO} | cut -d' ' -f1)"
|
HASH="$(web_pipe "${URL}/signed-hashes.txt" | grep "${ISO}" | cut_1)"
|
||||||
echo "${URL}/${ISO}" "${HASH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_peppermint() {
|
function get_peppermint() {
|
||||||
|
|
Loading…
Reference in New Issue