From 6bcbd86f649246f953345f499f1688accfffd861 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 9 Apr 2015 00:14:08 +0100 Subject: [PATCH] Updated build.sh --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 8afd385d2..271d0ac5e 100755 --- a/build.sh +++ b/build.sh @@ -4,9 +4,9 @@ set -x SCULPIN='/usr/local/bin/sculpin' ENV='prod' -REPO='git@github.com:opdavies/opdavies.github.io.git' -DEPLOY_DIR='./gh-pages-deployment' BRANCH='master' +REPO="git@github.com:opdavies/opdavies.github.io.git --branch ${BRANCH}" +DEPLOY_DIR='./gh-pages-deployment' rm -rf ./output_${ENV} ${SCULPIN} generate --env=${ENV} @@ -20,7 +20,7 @@ pushd ${DEPLOY_DIR} git checkout -B ${BRANCH} -cp -R ../output_${ENV}/* ./ +rsync --quiet --archive --delete ../output_${ENV}/ ./ git add -A . git commit -m "${LOG}"