bash/deploy.sh in jgd-1.6.4 vs bash/deploy.sh in jgd-1.6.5

- old
+ new

@@ -6,13 +6,16 @@ URL=$1 SRC=$(pwd) TEMP=$(mktemp -d -t jgd-XXX) trap "rm -rf ${TEMP}" EXIT CLONE=${TEMP}/clone +COPY=${TEMP}/copy echo -e "Cloning Github repository:" git clone "${URL}" "${CLONE}" +cp -R ${CLONE} ${COPY} + cd "${CLONE}" echo -e "\nBuilding Jekyll site:" rm -rf _site @@ -27,10 +30,13 @@ exit -1 fi cp -R _site ${TEMP} -git clean -fd +cd ${TEMP} +rm -rf ${CLONE} +mv ${COPY} ${CLONE} +cd ${CLONE} echo -e "\nPreparing gh-pages branch:" if [ -z "$(git branch -a | grep origin/gh-pages)" ]; then git checkout --orphan gh-pages else