mirror of https://github.com/k3s-io/k3s
ignore staging in munge scripts
parent
e83f5dfda6
commit
b45e578ddd
|
@ -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/*" \
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -37,6 +37,7 @@ find_files() {
|
|||
-o -wholename './target' \
|
||||
-o -wholename '*/third_party/*' \
|
||||
-o -wholename '*/vendor/*' \
|
||||
-o -wholename './staging' \
|
||||
\) -prune \
|
||||
\) -name '*.go'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue