dynamic fetching of release tags

also swap wgets for curls
pull/692/head
Phil Clifford 2 years ago committed by Martin Wimpress
parent a99ca998f5
commit 6f8f99dc17
  1. 7
      quickget

@ -266,7 +266,8 @@ function editions_arcolinux() {
} }
function releases_blendos() { function releases_blendos() {
echo 23.01 curl -s https://api.github.com/repos/blend-os/blendOS/releases |grep tag_name | grep -o -E '[[:digit:]]+\.[[:digit:]]+'
} }
function releases_cachyos() { function releases_cachyos() {
@ -999,8 +1000,8 @@ function get_arcolinux() {
function get_blendos() { function get_blendos() {
local HASH="" local HASH=""
local URL="$(wget -q https://api.github.com/repos/blend-os/blendOS/releases -O- |grep 'browser_download_url'|grep ${RELEASE} | grep -o '\"http.*\.iso\"'| cut -d\" -f 2| head -1)" local URL="$(curl -s https://api.github.com/repos/blend-os/blendOS/releases |grep 'browser_download_url'|grep ${RELEASE} | grep -o '\"http.*\.iso\"'| cut -d\" -f 2| head -1)"
HASH=$(wget -q -O- "${URL}.sha256sum" | cut -d' ' -f1) HASH=$(curl -s "${URL}.sha256sum" | cut -d' ' -f1)
echo "${URL} ${HASH}" echo "${URL} ${HASH}"
} }

Loading…
Cancel
Save