Skip to content

Commit

Permalink
Fix errant error message from boilerplate check
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Jan 19, 2015
1 parent eeb712d commit 60e7002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.go" | gr
done

# Check sh files for boilerplate
for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.sh" | grep -v "third_party" -e "Godeps"); do
for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.sh" | grep -v -e "third_party" -e "Godeps"); do
# Check for files without the required boilerplate.
boilerplate=$("${KUBE_HOOKS_DIR}/boilerplate.sh" "${file}")
if [[ "$boilerplate" -eq "0" ]]; then
Expand Down

0 comments on commit 60e7002

Please sign in to comment.