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>
This commit is contained in:
parent
a09d5128be
commit
ec0f276abf
4
quickget
4
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}"
|
||||
|
|
Loading…
Reference in New Issue