Skip to content

Commit

Permalink
refactor(fedora): Use more concise function to filter out non-ISO files
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed Nov 8, 2024
1 parent b2d0938 commit 29fb0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ function get_fedora() {


# 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 (.link | test(".*\\.iso$")))')
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 29fb0e1

Please sign in to comment.