Merge pull request #87514 from hase1128/fix-verify-api-groups-script

Fix bug of hack/verify-api-groups.sh
This commit is contained in:
Kubernetes Prow Robot 2020-01-27 18:53:39 -08:00 committed by GitHub
commit 63df400778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ for register_file in "${register_files[@]}"; do
group_dirname="${group_dirname%%"/*"}"
group_name=""
if grep -q 'GroupName = "' "${register_file}"; then
group_name=$(grep -q 'GroupName = "' "${register_file}" | cut -d\" -f2 -)
group_name=$(grep 'GroupName = "' "${register_file}" | cut -d\" -f2 -)
else
echo "${register_file} is missing \"const GroupName =\""
exit 1