From 866fed32c79d72bc7ef1bb8da2e47ff7c60e6201 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 22:22:37 +0100 Subject: [PATCH] refactor: update tails to use web_pipe() --- quickget | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}"