mirror of
https://github.com/clearlinux/docs.git
synced 2026-10-03 23:58:21 +00:00
Switch %%LOGO%% to use an explicit commit link so that logos update in the same way the rest of the content does
This commit is contained in:
@@ -107,11 +107,21 @@ for repo in "${repos[@]}"; do
|
||||
fi
|
||||
|
||||
logo=
|
||||
if [ -e "$repo/logo.png" ]; then
|
||||
logo=""
|
||||
elif [ -e "$repo/logo.svg" ]; then
|
||||
# rawgit.com because: http://stackoverflow.com/a/16462143/433558
|
||||
logo=""
|
||||
logoFile=
|
||||
for f in png svg; do
|
||||
if [ -e "$repo/logo.$f" ]; then
|
||||
logoFile="$repo/logo.$f"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ "$logoFile" ]; then
|
||||
logoCommit="$(git log -1 --format='format:%H' -- "$logoFile" 2>/dev/null || true)"
|
||||
[ "$logoCommit" ] || logoCommit='master'
|
||||
if [ "${logoFile##*.}" = 'svg' ]; then
|
||||
logo=""
|
||||
else
|
||||
logo=""
|
||||
fi
|
||||
fi
|
||||
|
||||
compose=
|
||||
|
||||
Reference in New Issue
Block a user