mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
fix(rebornos): use CDN metadata API instead of scraping
Signed-off-by: SoulHarsh007 <harsh.peshwani@outlook.com>
This commit is contained in:
parent
2574113fa1
commit
05c7511b2f
1 changed files with 3 additions and 3 deletions
6
quickget
6
quickget
|
@ -549,9 +549,9 @@ function releases_rebornos() {
|
|||
}
|
||||
|
||||
function get_rebornos() {
|
||||
local ISO=$(curl -s 'https://www.rebornos.org/download/' | grep -ohE 'https://pub-cb7a4d4f7a974896b3bf40c52d1defbc.r2.dev/RebornOS-ISO/(rebornos_xfce_minimal|rebornos_iso)-[0-9]{4}.[0-9]{2}.[0-9]{2}-x86_64.iso' | tail -n1)
|
||||
local HASH=$(curl -s 'https://www.rebornos.org/download/' | grep -ozP 'Checksum MD5:.*[0-9a-fA-F]{32}' | grep -zoP '[0-9a-fA-F]{32}' | cut -d '' -f1)
|
||||
echo "${ISO} ${HASH}"
|
||||
local ISO=$(wget -q -O- "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".url")
|
||||
local HASH=$(wget -q -O- "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".md5")
|
||||
echo "${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function releases_rockylinux() {
|
||||
|
|
Loading…
Reference in a new issue