Skip to content

Commit 5f13a9c

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored andcommitted
test: refine verify-helm-chart-index.sh
1 parent 293e5f9 commit 5f13a9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hack/verify-helm-chart-index.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ function check_url() {
3535
echo "$local does not exist"
3636
# ignore url which contains latest
3737
if [[ "$url" == *"latest"* ]]; then
38+
echo "ignore $url"
39+
ignore_filename=$(basename "$url")
40+
return
41+
fi
42+
# if ignore_filename is set, ignore url which contains ignore_filename
43+
if [[ -n "${ignore_filename:-}" && "$url" == *"$ignore_filename"* ]]; then
3844
echo "ignore $url"
3945
return
4046
fi

0 commit comments

Comments
 (0)