From ec0f276abf6896dab91f6879cc477123eed387ad Mon Sep 17 00:00:00 2001 From: Gordon Schulz Date: Fri, 8 Nov 2024 09:12:41 +0100 Subject: [PATCH] fix(fedora): Check whether the link value contains an actual .iso file (#1503) * fix(fedora): Check whether the link value contains an actual .iso file Also remove the SHA256 requirement. Fedora provides these for all links now. Fixes #1502 * refactor(fedora): Use more concise function to filter out non-ISO files --------- Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 07d2238960..e051c8b8d3 100755 --- a/quickget +++ b/quickget @@ -1820,10 +1820,10 @@ function get_fedora() { RELEASE="${RELEASE/_/ }" fi - + # shellcheck disable=SC2086 - JSON=$(web_pipe "https://getfedora.org/releases.json" | jq '.[] | select(.variant=="'${VARIANT}'" and .subvariant=="'"${EDITION}"'" and .arch=="x86_64" and .version=="'"${RELEASE}"'" and .sha256 != null)') + JSON=$(web_pipe "https://getfedora.org/releases.json" | jq '.[] | select(.variant=="'${VARIANT}'" and .subvariant=="'"${EDITION}"'" and .arch=="x86_64" and .version=="'"${RELEASE}"'" and (.link | endswith(".iso")))') URL=$(echo "${JSON}" | jq -r '.link' | head -n1) HASH=$(echo "${JSON}" | jq -r '.sha256' | head -n1) echo "${URL} ${HASH}"