From 34863346b04bd426363d2b624e5e215cffc0c840 Mon Sep 17 00:00:00 2001 From: tuti Date: Fri, 13 Nov 2020 11:09:56 -0800 Subject: [PATCH] include arch type in grep string --- hack/install_kustomize.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hack/install_kustomize.sh b/hack/install_kustomize.sh index a133a1cb6..eebb236ee 100755 --- a/hack/install_kustomize.sh +++ b/hack/install_kustomize.sh @@ -38,6 +38,7 @@ trap cleanup EXIT pushd $tmpDir >& /dev/null opsys=windows +arch=amd64 if [[ "$OSTYPE" == linux* ]]; then opsys=linux elif [[ "$OSTYPE" == darwin* ]]; then @@ -45,10 +46,8 @@ elif [[ "$OSTYPE" == darwin* ]]; then fi curl -s $release_url |\ - grep browser_download |\ - grep $opsys |\ + grep browser_download.*${opsys}_${arch} |\ cut -d '"' -f 4 |\ - grep /kustomize/$version.*amd64 |\ sort | tail -n 1 |\ xargs curl -sLO