ignore staging in munge scripts

This commit is contained in:
Chao Xu 2016-08-24 13:02:57 -07:00
parent e83f5dfda6
commit b45e578ddd
3 changed files with 4 additions and 0 deletions

View File

@ -260,6 +260,7 @@ kube::util::gen-analytics() {
mdfiles=($( find "${dir}" -name "*.md" -type f \ mdfiles=($( find "${dir}" -name "*.md" -type f \
-not -path '*/\.*' \ -not -path '*/\.*' \
-not -path "${path}/vendor/*" \ -not -path "${path}/vendor/*" \
-not -path "${path}/staging/*" \
-not -path "${path}/third_party/*" \ -not -path "${path}/third_party/*" \
-not -path "${path}/_gopath/*" \ -not -path "${path}/_gopath/*" \
-not -path "${path}/_output/*" \ -not -path "${path}/_output/*" \

View File

@ -55,6 +55,8 @@ def get_all_files(rootdir):
# don't visit certain dirs # don't visit certain dirs
if 'vendor' in dirs: if 'vendor' in dirs:
dirs.remove('vendor') dirs.remove('vendor')
if 'staging' in dirs:
dirs.remove('staging')
if '_output' in dirs: if '_output' in dirs:
dirs.remove('_output') dirs.remove('_output')
if '_gopath' in dirs: if '_gopath' in dirs:

View File

@ -37,6 +37,7 @@ find_files() {
-o -wholename './target' \ -o -wholename './target' \
-o -wholename '*/third_party/*' \ -o -wholename '*/third_party/*' \
-o -wholename '*/vendor/*' \ -o -wholename '*/vendor/*' \
-o -wholename './staging' \
\) -prune \ \) -prune \
\) -name '*.go' \) -name '*.go'
} }