website/docker/entrypoint.sh

13 lines
247 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if [[ $DEBUG != "" ]]; then
set -x
fi
COMMAND=$*
if [[ $1 = "serve" ]] || [[ $1 == "build" ]] || [[ $1 == "gh-deploy" ]] || [[ $1 == "new" ]] || [[ $1 == "--help" ]]; then
exec "mkdocs $COMMAND"
else
exec "$COMMAND"
fi