Skip to content

Commit

Permalink
fix(rebornos): use CDN metadata API instead of scraping
Browse files Browse the repository at this point in the history
Signed-off-by: SoulHarsh007 <[email protected]>
  • Loading branch information
SoulHarsh007 authored and flexiondotorg committed Oct 16, 2023
1 parent 2574113 commit 05c7511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 05c7511

Please sign in to comment.