From d841b1d3f70ef5b40a7cae0e839a0db2fb2485d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?La=CC=81szlo=CC=81=20Bence=20Nagy?= Date: Mon, 29 Jun 2020 14:54:51 +0200 Subject: [PATCH] Make shellcheck happy --- hack/update-codegen.sh | 2 +- scripts/download-deps.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index d08298779..93f5112a2 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -6,7 +6,7 @@ set -o pipefail CUSTOM_HEADER=${PWD}/hack/boilerplate.go.txt -GOBIN=${PWD}/bin ${PWD}/hack/generate-groups.sh \ +GOBIN=${PWD}/bin "${PWD}"/hack/generate-groups.sh \ client,lister,informer \ github.com/banzaicloud/istio-operator/pkg/client \ github.com/banzaicloud/istio-operator/pkg/apis \ diff --git a/scripts/download-deps.sh b/scripts/download-deps.sh index 75bb6a81b..07c19de5c 100755 --- a/scripts/download-deps.sh +++ b/scripts/download-deps.sh @@ -1,13 +1,13 @@ #!/usr/bin/env bash set +x -binpath=${PWD}/$(dirname $0)/../bin +binpath=${PWD}/$(dirname "$0")/../bin version="v0.0.0-20180823001027-3dcf91f64f63" cmds="deepcopy-gen defaulter-gen lister-gen client-gen informer-gen" for name in ${cmds}; do if [[ ! -f $binpath/$name ]]; then - GOBIN=$binpath go get k8s.io/code-generator/cmd/$name@$version + GOBIN=$binpath go get k8s.io/code-generator/cmd/"$name"@$version fi done