fix: Accept edition as fedora variant
This commit is contained in:
parent
2129abf060
commit
14f86e7d89
4
quickget
4
quickget
|
|
@ -1873,7 +1873,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 | endswith(".iso")))')
|
||||
JSON=$(web_pipe "https://getfedora.org/releases.json" | jq '.[] | select((.variant=="'"${VARIANT}"'" or .variant=="'"${EDITION}"'") 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}"
|
||||
|
|
@ -2343,7 +2343,7 @@ function get_pclinuxos() {
|
|||
local URL="https://ftp.fau.de/pclinuxos/pclinuxos/iso"
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
|
||||
function get_peppermint() {
|
||||
local HASH=""
|
||||
local ISO=""
|
||||
|
|
|
|||
Loading…
Reference in New Issue