From 6a9e75ee0d558683b989fe42e7edc02e84c990a9 Mon Sep 17 00:00:00 2001 From: Timo Walter Date: Mon, 21 Sep 2020 23:09:16 +0200 Subject: [PATCH] Improve the "install_kustomize.sh" script - fix formatting - remove unnecessary echo statements --- hack/install_kustomize.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hack/install_kustomize.sh b/hack/install_kustomize.sh index 099767741..4c4993466 100755 --- a/hack/install_kustomize.sh +++ b/hack/install_kustomize.sh @@ -10,12 +10,9 @@ # # Fails if the file already exists. -if [ -z "$1" ] - then - echo "No version specified. Downloading the most recently released kustomize binary." +if [ -z "$1" ]; then version="" else - echo "Downloading the kustomize binary version $1." version=$1 fi @@ -54,8 +51,7 @@ curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases |\ sort | tail -n 1 |\ xargs curl -s -O -L -if [ -e ./kustomize_v*_${opsys}_amd64.tar.gz ] -then +if [ -e ./kustomize_v*_${opsys}_amd64.tar.gz ]; then tar xzf ./kustomize_v*_${opsys}_amd64.tar.gz else echo "Error: kustomize binary with the version $version does not exist!"