mirror of https://github.com/k3s-io/k3s
Merge pull request #3614 from thockin/hooks_err
Fix errant error message from boilerplate checkpull/6/head
commit
dd6cc7824a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue