Fix RebornOS? (jq)
This commit is contained in:
parent
76bae20ccd
commit
7210af2751
|
|
@ -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}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue