File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,12 @@ EOL
166
166
fi
167
167
168
168
# update the README
169
- if ! grep -q " travis-ci.com/$repoSlug " README.md > /dev/null 2>&1
169
+ if ! grep -q " travis-ci.\( com\|org\) /$repoSlug " README.md > /dev/null 2>&1
170
170
then
171
171
info " Adding Travis badge to README.md"
172
- echo " [](https://travis-ci.com/$repoSlug )" > " $tmpFile "
172
+ travisURL=$( grep travis-ci pom.xml | sed ' s_.*<url>\(.*\)</url>.*_\1_' )
173
+ test " $travisURL " || travisURL=" https://travis-ci.com/$repoSlug "
174
+ echo " []($travisURL )" > " $tmpFile "
173
175
echo >> " $tmpFile "
174
176
test -f README.md && cat README.md >> " $tmpFile "
175
177
update README.md ' Travis: add badge to README.md'
You can’t perform that action at this time.
0 commit comments