mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Fix errant error message from boilerplate check
This commit is contained in:
parent
eeb712d163
commit
60e7002474
@ -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
Block a user