mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: ignore vendor/ directory on license check
This commit is contained in:
parent
fb3510b276
commit
45cf31650c
2
test
2
test
@ -102,7 +102,7 @@ function fmt_tests {
|
||||
fi
|
||||
|
||||
echo "Checking for license header..."
|
||||
licRes=$(for file in $(find . -type f -iname '*.go' ! -path './Godeps/*'); do
|
||||
licRes=$(for file in $(find . -type f -iname '*.go' ! -path './vendor/*'); do
|
||||
head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo -e " ${file}"
|
||||
done;)
|
||||
if [ -n "${licRes}" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user