fix generate-groups.sh

This script should run when user pass arguements like this:
generate-groups.sh  deepcopy "k8s.io/coredump-detector/" "k8s.io/coredump-detector/apis/" "coredump:v1alpha1"
This commit is contained in:
Cao Shufeng 2017-10-10 16:10:39 +08:00
parent 687a91cbce
commit a00b8153ca

View File

@ -21,7 +21,7 @@ set -o pipefail
# generate-groups generates everything for a project with external types only, e.g. a project based
# on CustomResourceDefinitions.
if [ "$#" -le 4 ] || [ "${1}" == "--help" ]; then
if [ "$#" -lt 4 ] || [ "${1}" == "--help" ]; then
cat <<EOF
Usage: $(basename $0) <generators> <output-package> <apis-package> <groups-versions> ...