From 5cf883a73a92e1454fca3bdf374b1421f8024ad8 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 22 Feb 2022 09:44:56 +0000 Subject: [PATCH] Use consistent ISO derivation in get_tails() --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index eb7324e..22befaf 100755 --- a/quickget +++ b/quickget @@ -1453,7 +1453,7 @@ function get_tails() { RELEASE_JSON="$(wget -q -O- "${RELEASE_JSON_URL}")" URL=$(echo "${RELEASE_JSON}" | jq -r '.installations[0]."installation-paths"[]|select(.type=="iso")|."target-files"[0].url') HASH=$(echo "${RELEASE_JSON}" | jq -r '.installations[0]."installation-paths"[]|select(.type=="iso")|."target-files"[0].sha256') - ISO=$(echo "${URL}" | sed -e "s/.*\/\([^\/]*\)$/\1/") + ISO="${URL##*/}" web_get "${URL}" "${VM_PATH}" check_hash "${ISO}" "${HASH}" make_vm_config "${ISO}"