Merge pull request #9663 from gyuho/test

test: fix "markdown_you_pass"
This commit is contained in:
Gyuho Lee 2018-04-30 12:46:52 -07:00 committed by GitHub
commit b8e8d75677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
test
View File

@ -368,7 +368,7 @@ function shellcheck_pass {
function markdown_you_pass {
# eschew you
yous=$(find . -name \*.md -exec grep -E --color "[Yy]ou[r]?[ '.,;]" {} + | grep -v /v2/ || true)
yous=$(find . -name \*.md ! -path './vendor/*' ! -path './gopath.proto/*' -exec grep -E --color "[Yy]ou[r]?[ '.,;]" {} + | grep -v /v2/ || true)
if [ ! -z "$yous" ]; then
echo -e "found 'you' in documentation:\\n${yous}"
exit 255