bash/deploy.sh in jgd-1.5 vs bash/deploy.sh in jgd-1.5.1

- old
+ new

@@ -10,13 +10,13 @@ echo -e "Cloning Github repository:" git clone "${URL}" "${CLONE}" echo -e "\nRegistering variables:" cd "${CLONE}" -USER_EMAIL=$(git config --get user.email) +USER_EMAIL=$(git config --get user.email | cat) USER_EMAIL=${USER_EMAIL:-"jgd@teamed.io"} -USER_NAME=$(git config --get user.name) +USER_NAME=$(git config --get user.name | cat) USER_NAME=${USER_NAME:-"jekyll-github-deploy"} VERSION=$(git describe --always --tag) echo -e "\nBuilding Jekyll site:" @@ -24,9 +24,14 @@ if [ -r _config-deploy.yml ]; then jekyll build --config _config.yml,_config-deploy.yml else jekyll build +fi + +if [ ! -e _site ]; then + echo -e "\nJekyll didn't generate anything in _site!" + exit -1 fi cp -R _site ${TEMP} echo -e "\nPreparing gh-pages branch:"