Fix RebornOS? (jq)

This commit is contained in:
zenobit 2025-03-03 20:00:20 +01:00
parent 76bae20ccd
commit 7210af2751
2 changed files with 8 additions and 8 deletions

View File

@ -11,9 +11,9 @@ function releases_() {
} }
function get_() { function get_() {
local HASH="" local JSON ISO HASH
local ISO="" JSON=$(curl -s "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json") || return 1
ISO=$(web_pipe "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".url") ISO=$(echo "$JSON" | jq -r ".url")
HASH=$(web_pipe "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".md5") HASH=$(echo "$JSON" | jq -r ".md5")
echo "${ISO} ${HASH}" echo "${ISO} ${HASH}"
} }

View File

@ -15,10 +15,10 @@ function releases_() {
} }
function get_() { function get_() {
local HASH="" local JSON ISO HASH
local ISO="" JSON=$(curl -s "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json") || return 1
ISO=$(web_pipe "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".url") ISO=$(echo "$JSON" | jq -r ".url")
HASH=$(web_pipe "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".md5") HASH=$(echo "$JSON" | jq -r ".md5")
echo "${ISO} ${HASH}" echo "${ISO} ${HASH}"
} }