mirror of https://github.com/k3s-io/k3s
update verify-staging-meta-files.sh
parent
c6ae694b79
commit
112af136df
|
@ -20,8 +20,6 @@ set -o pipefail
|
||||||
|
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
|
|
||||||
IFS=" " read -r -a staging_repos <<< "$(ls "${KUBE_ROOT}/staging/src/k8s.io/")"
|
|
||||||
|
|
||||||
expected_filenames=(
|
expected_filenames=(
|
||||||
.github/PULL_REQUEST_TEMPLATE.md
|
.github/PULL_REQUEST_TEMPLATE.md
|
||||||
code-of-conduct.md
|
code-of-conduct.md
|
||||||
|
@ -36,7 +34,8 @@ exceptions=(
|
||||||
)
|
)
|
||||||
|
|
||||||
RESULT=0
|
RESULT=0
|
||||||
for repo in "${staging_repos[@]}"; do
|
for full_repo_path in "${KUBE_ROOT}"/staging/src/k8s.io/*; do
|
||||||
|
repo=$(basename "${full_repo_path}")
|
||||||
for filename in "${expected_filenames[@]}"; do
|
for filename in "${expected_filenames[@]}"; do
|
||||||
if echo " ${exceptions[*]} " | grep -F " ${repo}/${filename} " >/dev/null; then
|
if echo " ${exceptions[*]} " | grep -F " ${repo}/${filename} " >/dev/null; then
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue