Skip to content

Commit

Permalink
fix: Downloading Fedora Silverblue iso instead of ociarchive file
Browse files Browse the repository at this point in the history
  • Loading branch information
OhMyMndy committed Jul 3, 2024
1 parent 5568e6d commit b70b45d
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 @@ -1841,7 +1841,7 @@ function get_fedora() {
*) VARIANT="Spins";;
esac
#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}"'")')
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)')
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 b70b45d

Please sign in to comment.