mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Fix #3571 with a -V
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
# If two arguments are given -> Downloads the specified version of the
|
# If two arguments are given -> Downloads the specified version of the
|
||||||
# kustomize binary to the specified directory.
|
# kustomize binary to the specified directory.
|
||||||
# (e.g. 'install_kustomize.sh 3.8.2 $(go env GOPATH)/bin')
|
# (e.g. 'install_kustomize.sh 3.8.2 $(go env GOPATH)/bin')
|
||||||
#
|
#
|
||||||
# Fails if the file already exists.
|
# Fails if the file already exists.
|
||||||
|
|
||||||
curl_timeout=600
|
curl_timeout=600
|
||||||
@@ -58,7 +58,7 @@ fi
|
|||||||
curl -m $curl_timeout -s $release_url |\
|
curl -m $curl_timeout -s $release_url |\
|
||||||
grep browser_download.*${opsys}_${arch} |\
|
grep browser_download.*${opsys}_${arch} |\
|
||||||
cut -d '"' -f 4 |\
|
cut -d '"' -f 4 |\
|
||||||
sort | tail -n 1 |\
|
sort -V | tail -n 1 |\
|
||||||
xargs curl -m $curl_timeout -sLO
|
xargs curl -m $curl_timeout -sLO
|
||||||
|
|
||||||
if [ -e ./kustomize_v*_${opsys}_amd64.tar.gz ]; then
|
if [ -e ./kustomize_v*_${opsys}_amd64.tar.gz ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user