From dc25a6a1ce96e651b9529173404fc642fd36588f Mon Sep 17 00:00:00 2001 From: monopole Date: Tue, 9 Feb 2021 16:28:31 -0800 Subject: [PATCH] Fix #3571 with a -V --- hack/install_kustomize.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/install_kustomize.sh b/hack/install_kustomize.sh index fd057c444..e56f24a31 100755 --- a/hack/install_kustomize.sh +++ b/hack/install_kustomize.sh @@ -11,7 +11,7 @@ # If two arguments are given -> Downloads the specified version of the # kustomize binary to the specified directory. # (e.g. 'install_kustomize.sh 3.8.2 $(go env GOPATH)/bin') -# +# # Fails if the file already exists. curl_timeout=600 @@ -58,7 +58,7 @@ fi curl -m $curl_timeout -s $release_url |\ grep browser_download.*${opsys}_${arch} |\ cut -d '"' -f 4 |\ - sort | tail -n 1 |\ + sort -V | tail -n 1 |\ xargs curl -m $curl_timeout -sLO if [ -e ./kustomize_v*_${opsys}_amd64.tar.gz ]; then