mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-18 18:18:36 +00:00
Fix for the occasional minified JSON from GitHub release API
This commit is contained in:
@@ -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")/"
|
||||
|
||||
Reference in New Issue
Block a user