refactor: update tails to use web_pipe()
This commit is contained in:
parent
2274d3d923
commit
866fed32c7
3
quickget
3
quickget
|
@ -2790,11 +2790,10 @@ function get_spirallinux() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_tails() {
|
function get_tails() {
|
||||||
local ISO=""
|
|
||||||
local JSON=""
|
local JSON=""
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local URL=""
|
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')
|
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')
|
HASH=$(echo "${JSON}" | jq -r '.installations[0]."installation-paths"[]|select(.type=="iso")|."target-files"[0].sha256')
|
||||||
echo "${URL} ${HASH}"
|
echo "${URL} ${HASH}"
|
||||||
|
|
Loading…
Reference in New Issue