From 1df176a401bbac774cfe0a58d56d6ef284c836e7 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 3 Mar 2019 10:07:27 -0500 Subject: [PATCH] Optional Build script --- entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d13adde9..6a60c175 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -23,8 +23,11 @@ git config --global user.name "${COMMIT_NAME:-Github Pages Deploy}" && \ git checkout master && \ git push $GITHUB_REPOSITORY $BRANCH:$BRANCH && \ -# Builds the project. -$BUILD_SCRIPT && \ +# Builds the project if applicable. +if [ -z "$BUILD_SCRIPT" ] +then + $BUILD_SCRIPT && \ +fi # Commits the data to Github. git add -f $FOLDER &&