Skip to content

Commit 02e5f32

Browse files
authored
Merge pull request #2175 from andyzhangx/ignore_filename
test: refine verify-helm-chart-index.sh
2 parents 8d41104 + 24607b8 commit 02e5f32

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/verify-helm-chart-index.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set -euo pipefail
1919
readonly PKG_ROOT="$(git rev-parse --show-toplevel)"
2020

2121
INDEX=${PKG_ROOT}/charts/index.yaml
22+
ignore_filename=""
2223

2324
function check_url() {
2425
url=$1
@@ -35,6 +36,12 @@ function check_url() {
3536
echo "$local does not exist"
3637
# ignore url which contains latest
3738
if [[ "$url" == *"latest"* ]]; then
39+
echo "ignore $url"
40+
ignore_filename=$(basename "$url")
41+
return
42+
fi
43+
# if ignore_filename is set, ignore url which contains ignore_filename
44+
if [[ -n "${ignore_filename:-}" && "$url" == *"$ignore_filename"* ]]; then
3845
echo "ignore $url"
3946
return
4047
fi

0 commit comments

Comments
 (0)