mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 17:36:40 +00:00
17 lines
636 B
Text
17 lines
636 B
Text
INFO=" Tails|Debian||https://tails.net/|Portable operating system that protects against surveillance and censorship.";;
|
|
|
|
function releases_tails() {
|
|
echo stable
|
|
}
|
|
|
|
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")"
|
|
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}"
|
|
}
|