Skip to content

Commit

Permalink
fix(fedora): Check whether the link value contains an actual .iso file (
Browse files Browse the repository at this point in the history
#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 <[email protected]>
  • Loading branch information
azmodude and lj3954 authored Nov 8, 2024
1 parent a09d512 commit ec0f276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit ec0f276

Please sign in to comment.