Use $BASE_BRANCH instead of master (#7)

* Use $BASE_BRANCH instead of master

* Set master as default to $BASE_BRANCH
This commit is contained in:
Jaisel Rahman 2019-05-18 00:32:34 +05:30 committed by James Ives
parent 7083c85b5f
commit 46b59760fc

View File

@ -74,5 +74,5 @@ echo "Deploying to GitHub..." && \
git add -f $FOLDER && \
git commit -m "Deploying to ${BRANCH} - $(date +"%T")" && \
git push $REPOSITORY_PATH `git subtree split --prefix $FOLDER master`:$BRANCH --force && \
echo "Deployment succesful!"
git push $REPOSITORY_PATH `git subtree split --prefix $FOLDER ${BASE_BRANCH:-master}`:$BRANCH --force && \
echo "Deployment succesful!"