diff --git a/quickget b/quickget index 0067c2b..51e8047 100755 --- a/quickget +++ b/quickget @@ -2790,11 +2790,10 @@ function get_spirallinux() { } function get_tails() { - local ISO="" local JSON="" local HASH="" local URL="" - JSON="$(wget -q -O- "https://tails.boum.org/install/v2/Tails/amd64/${RELEASE}/latest.json")" + JSON="$(web_pipe "https://tails.boum.org/install/v2/Tails/amd64/${RELEASE}/latest.json")" URL=$(echo "${JSON}" | jq -r '.installations[0]."installation-paths"[]|select(.type=="iso")|."target-files"[0].url') HASH=$(echo "${JSON}" | jq -r '.installations[0]."installation-paths"[]|select(.type=="iso")|."target-files"[0].sha256') echo "${URL} ${HASH}"