Fix for the occasional minified JSON from GitHub release API

This commit is contained in:
Edward Cooke
2026-06-14 18:50:35 -06:00
parent f36fdc77d3
commit f8488f94e6

View File

@@ -79,9 +79,11 @@ function find_release_url() {
local arch=$3
echo "${releases}" |\
grep "browser_download.*${opsys}_${arch}" |\
cut -d '"' -f 4 |\
sort -V | tail -n 1
grep -oE '"browser_download_url"[[:space:]]*:[[:space:]]*"[^"]*"' |\
cut -d '"' -f4 |\
grep "${opsys}_${arch}" |\
sort -V |\
tail -n 1
}
where="$(readlink_f "$where")/"