File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,18 @@ n=$'\n'
49
49
t=$' \t '
50
50
51
51
travisImage=" https://img.shields.io/travis/$travisRepo /master.svg"
52
- if wget -q --spider " $travisImage " & > /dev/null; then
52
+ if svg= " $( wget -qO- " $travisImage " 2> /dev/null) " && [[ " $svg " != * unknown * ]] ; then
53
53
travisLink=" https://travis-ci.org/$travisRepo /branches"
54
54
badges+=( " -${t} [Travis CI: ${n}${t} ]($travisLink )" )
55
55
fi
56
56
57
+ # https://www.appveyor.com/docs/status-badges/#badges-for-projects-with-public-repositories-on-github-and-bitbucket
58
+ appveyorImage=" https://ci.appveyor.com/api/projects/status/github/docker-library/$repo ?branch=master&svg=true"
59
+ if svg=" $( wget -qO- " $appveyorImage " 2> /dev/null) " && [[ " $svg " != * unknown* ]]; then
60
+ appveyorLink=" https://ci.appveyor.com/project/docker-library/$repo "
61
+ badges+=( " -${t} [AppVeyor (Windows): ${n}${t} ]($appveyorLink )" )
62
+ fi
63
+
57
64
jenkinsImage=" https://doi-janky.infosiftr.net/job/update.sh/job/$repo /badge/icon"
58
65
if wget -q --spider " $jenkinsImage " & > /dev/null; then
59
66
jenkinsLink=" https://doi-janky.infosiftr.net/job/update.sh/job/$repo "
You can’t perform that action at this time.
0 commit comments