From b70dd2b2ec78cd7fb82f9e758bcc77a64ee57470 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sun, 3 Mar 2019 15:57:51 -0500 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index ab80c626..44e36e02 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,6 +17,10 @@ then exit 1 fi +if [[ "$FOLDER" == "/" ]]; then + FOLDER=":/" +fi + ## Initializes Variables REPOSITORY_PATH="https://${ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \ @@ -40,5 +44,6 @@ eval "$BUILD_SCRIPT" # Commits the data to Github. git add -f $FOLDER && \ git commit -m "Deploying to ${FOLDER} - $(date +"%T")" && \ -git push $REPOSITORY_PATH `git subtree split --prefix $FOLDER master`:$BRANCH --force +git push $REPOSITORY_PATH `git subtree split --prefix $FOLDER master`:$BRANCH --force && \ +echo "Deployment Succesful!"