Merge pull request #53652 from sttts/sttts-generate-internal-groups.sh-flags

Automatic merge from submit-queue (batch tested with PRs 53525, 53652). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

code-generator: fix flag check in generate-internal-groups.sh
This commit is contained in:
Kubernetes Submit Queue 2017-10-10 08:31:44 -07:00 committed by GitHub
commit 73d1b38604

View File

@ -21,7 +21,7 @@ set -o pipefail
# generate-internal-groups generates everything for a project with internal types, e.g. an
# user-provided API server based on k8s.io/apiserver.
if [ "$#" -le 5 ] || [ "${1}" == "--help" ]; then
if [ "$#" -lt 5 ] || [ "${1}" == "--help" ]; then
cat <<EOF
Usage: $(basename $0) <generators> <output-package> <internal-apis-package> <extensiona-apis-package> <groups-versions> ...