bash/deploy.sh in jgd-1.8 vs bash/deploy.sh in jgd-1.9
- old
+ new
@@ -4,10 +4,11 @@
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
CLONE=${TEMP}/clone
COPY=${TEMP}/copy
@@ -19,11 +20,11 @@
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
if [ ! -e _site ]; then