Skip to content

Commit 670f794

Browse files
committed
Add a 4th DEPLOY_CONFIG parameter to shell script
1 parent f91e6b1 commit 670f794

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
@@ -6,6 +6,7 @@ set -o pipefail
66
URL=$1
77
BRANCH=$2
88
BRANCH_FROM=$3
9+
DEPLOY_CONFIG=$4
910
SRC=$(pwd)
1011
TEMP=$(mktemp -d -t jgd-XXX)
1112
trap "rm -rf ${TEMP}" EXIT
@@ -21,8 +22,8 @@ cd "${CLONE}"
2122
echo -e "\nBuilding Jekyll site:"
2223
rm -rf _site
2324

24-
if [ -r _config-deploy.yml ]; then
25-
jekyll build --config _config.yml,_config-deploy.yml
25+
if [ -r ${DEPLOY_CONFIG} ]; then
26+
jekyll build --config _config.yml,${DEPLOY_CONFIG}
2627
else
2728
jekyll build
2829
fi

0 commit comments

Comments
 (0)