From 57014c5e18acefc5ea1e8bd78fb48b39e87be0be Mon Sep 17 00:00:00 2001 From: danielqsj Date: Thu, 24 Jan 2019 11:32:48 +0800 Subject: [PATCH] fix shellcheck in generate groups --- hack/.shellcheck_failures | 2 -- .../k8s.io/code-generator/generate-groups.sh | 30 ++++++++-------- .../generate-internal-groups.sh | 35 ++++++++++--------- 3 files changed, 33 insertions(+), 34 deletions(-) diff --git a/hack/.shellcheck_failures b/hack/.shellcheck_failures index e03c07b07f6..39a3bba2f8d 100644 --- a/hack/.shellcheck_failures +++ b/hack/.shellcheck_failures @@ -163,8 +163,6 @@ ./staging/src/k8s.io/apiextensions-apiserver/hack/build-image.sh ./staging/src/k8s.io/apiextensions-apiserver/hack/update-codegen.sh ./staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh -./staging/src/k8s.io/code-generator/generate-groups.sh -./staging/src/k8s.io/code-generator/generate-internal-groups.sh ./staging/src/k8s.io/csi-api/hack/update-codegen.sh ./staging/src/k8s.io/csi-api/hack/verify-codegen.sh ./staging/src/k8s.io/kube-aggregator/hack/build-image.sh diff --git a/staging/src/k8s.io/code-generator/generate-groups.sh b/staging/src/k8s.io/code-generator/generate-groups.sh index d8531a8d9d7..bc6e9c3d83d 100755 --- a/staging/src/k8s.io/code-generator/generate-groups.sh +++ b/staging/src/k8s.io/code-generator/generate-groups.sh @@ -23,7 +23,7 @@ set -o pipefail if [ "$#" -lt 4 ] || [ "${1}" == "--help" ]; then cat < ... +Usage: $(basename "$0") ... the generators comma separated to run (deepcopy,defaulter,client,lister,informer) or "all". the output package name (e.g. github.com/example/project/pkg/generated). @@ -34,8 +34,8 @@ Usage: $(basename $0) ... +Usage: $(basename "$0") ... the generators comma separated to run (deepcopy,defaulter,conversion,client,lister,informer) or "all". the output package name (e.g. github.com/example/project/pkg/generated). @@ -34,8 +34,8 @@ Usage: $(basename $0)