Skip to content

Commit c587ca4

Browse files
author
dwest15
committed
Add 6th param to jekyll build command
1 parent 0db8b7a commit c587ca4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bash/deploy.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ BRANCH=$2
88
BRANCH_FROM=$3
99
DEPLOY_CONFIG=$4
1010
BUNDLE=$5
11+
DRAFTS=$6
1112
SRC=$(pwd)
1213
TEMP=$(mktemp -d -t jgd-XXX)
1314
trap "rm -rf ${TEMP}" EXIT
@@ -24,9 +25,9 @@ echo -e "\nBuilding Jekyll site:"
2425
rm -rf _site
2526

2627
if [ -r ${DEPLOY_CONFIG} ]; then
27-
${BUNDLE} jekyll build --config _config.yml,${DEPLOY_CONFIG}
28+
${BUNDLE} jekyll build --config _config.yml,${DEPLOY_CONFIG} ${DRAFTS}
2829
else
29-
${BUNDLE} jekyll build
30+
${BUNDLE} jekyll build ${DRAFTS}
3031
fi
3132

3233
if [ ! -e _site ]; then

0 commit comments

Comments
 (0)