README: add microbadger links

This commit is contained in:
zimbatm
2019-03-16 15:45:32 +01:00
parent 00e19c8779
commit d8642dcc66
2 changed files with 14 additions and 12 deletions

View File

@@ -11,10 +11,12 @@ microbadge() {
name=$name:$tag
fi
# make sure that microbadger has loaded the image
curl -o /dev/null -sfL "https://microbadger.com/images/$name"
local homepage=https://microbadger.com/images/$name
echo "![](https://images.microbadger.com/badges/image/$name.svg)"
# make sure that microbadger has loaded the image
curl -o /dev/null -sfL "$homepage"
echo "[![](https://images.microbadger.com/badges/image/$name.svg)]($homepage)"
}
## Main ##