Allow overriding APP_GIT_COMMIT

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-05-03 00:58:10 +01:00
parent c75db6304e
commit d5daff0d6a

View File

@ -29,7 +29,7 @@ SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../..
if [ -z "${APP_VERSION:-}" ]; then
APP_VERSION=canary
fi
APP_GIT_COMMIT=$(git rev-parse HEAD)
APP_GIT_COMMIT=${APP_GIT_COMMIT:-$(git rev-parse HEAD)}
GIT_STATE=""
if [ ! -z "$(git status --porcelain)" ]; then
GIT_STATE="dirty"