File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,16 @@ function check_url() {
25
25
result=$( curl -I -m 5 -s -w " %{http_code}\n" -o /dev/null $1 )
26
26
if [ $result -ne 200 ]
27
27
then
28
- echo " Error: $1 is fail."
29
- echo " Error: wrong pkg in " ${PKG_ROOT}${url#* master}
30
- exit 1
28
+ echo " warning: $1 is invalid"
29
+ local=${PKG_ROOT}${url#* master}
30
+ echo " check whether $local exists"
31
+ if [ -f " $local " ]
32
+ then
33
+ echo " $local exists"
34
+ else
35
+ echo " $local does not exist"
36
+ exit 1
37
+ fi
31
38
fi
32
39
}
33
40
@@ -39,6 +46,6 @@ function check_yaml() {
39
46
done
40
47
}
41
48
42
- echo " begin to verify helm chart index ..."
49
+ echo " begin to verify all URLs in $INDEX ..."
43
50
check_yaml
44
- echo " all url in helm chart index have been checked "
51
+ echo " all URLs in $INDEX are valid "
You can’t perform that action at this time.
0 commit comments