Added docker environment variables for author and email (#1789)

Sets git user.name and user.email if env var is set
This commit is contained in:
James Reynolds
2021-12-30 15:27:20 -07:00
committed by GitHub
parent 9c574fd760
commit 589b4bce39
+8
View File
@@ -5,6 +5,14 @@ if [ ! -d .git ]; then
git init git init
fi fi
# Set git user.name and user.email
if [ ${GOLLUM_AUTHOR_USERNAME:+1} ]; then
git config user.name "${GOLLUM_AUTHOR_USERNAME}"
fi
if [ ${GOLLUM_AUTHOR_EMAIL:+1} ]; then
git config user.email "${GOLLUM_AUTHOR_EMAIL}"
fi
# Start gollum service # Start gollum service
[[ "$@" != *--mathjax* ]] && echo "WARNING: Mathjax will soon be disabled by default. To explicitly enable it, use --mathjax" >&2 [[ "$@" != *--mathjax* ]] && echo "WARNING: Mathjax will soon be disabled by default. To explicitly enable it, use --mathjax" >&2
exec gollum $@ --mathjax exec gollum $@ --mathjax