Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Oct 9, 2018
1 parent 5e70982 commit 1f9dc5d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ for image in "${images[@]}"; do
if [ "$logoFile" ]; then
logoCommit="$(git log -1 --format='format:%H' -- "$logoFile" 2>/dev/null || true)"
[ "$logoCommit" ] || logoCommit='master'
logoUrl="https://raw.githubusercontent.com/docker-library/docs/$logoCommit/$logoFile"
if [ "${logoFile##*.}" = 'svg' ]; then
logo="![logo](https://cdn.rawgit.com/docker-library/docs/$logoCommit/$logoFile)"
else
logo="![logo](https://raw.githubusercontent.com/docker-library/docs/$logoCommit/$logoFile)"
# https://stackoverflow.com/a/16462143/433558
logoUrl+='?sanitize=true'
fi
logo="![logo]($logoUrl)"
fi

stack=
Expand Down

0 comments on commit 1f9dc5d

Please sign in to comment.