mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
ignore staging in munge scripts
This commit is contained in:
parent
e83f5dfda6
commit
b45e578ddd
@ -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/*" \
|
||||||
|
@ -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:
|
||||||
|
@ -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'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user