Skip to content

Commit

Permalink
Add a 4th DEPLOY_CONFIG parameter to shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
donavon committed May 29, 2017
1 parent f91e6b1 commit 670f794
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bash/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -o pipefail
URL=$1
BRANCH=$2
BRANCH_FROM=$3
DEPLOY_CONFIG=$4
SRC=$(pwd)
TEMP=$(mktemp -d -t jgd-XXX)
trap "rm -rf ${TEMP}" EXIT
Expand All @@ -21,8 +22,8 @@ cd "${CLONE}"
echo -e "\nBuilding Jekyll site:"
rm -rf _site

if [ -r _config-deploy.yml ]; then
jekyll build --config _config.yml,_config-deploy.yml
if [ -r ${DEPLOY_CONFIG} ]; then
jekyll build --config _config.yml,${DEPLOY_CONFIG}
else
jekyll build
fi
Expand Down

0 comments on commit 670f794

Please sign in to comment.