ignore staging in munge scripts

pull/6/head
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 \
-not -path '*/\.*' \
-not -path "${path}/vendor/*" \
-not -path "${path}/staging/*" \
-not -path "${path}/third_party/*" \
-not -path "${path}/_gopath/*" \
-not -path "${path}/_output/*" \

View File

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

View File

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