From 2ffcc3b4e79154d6f45a67173edd13f256d12b55 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Thu, 30 Oct 2014 12:41:49 -0700 Subject: [PATCH] fix(build): allow git add to fail if there aren't new docs --- scripts/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 714a1fa0e02..890f4da5301 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -31,7 +31,10 @@ if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ] cd docs cp -R `ls --ignore 'versions.txt'` ../ghpages/ cd ../ghpages + # allow "git add" to fail if there aren't new files. + set +e git add . + set -e # commit to gh-pages branch to apply changes git config user.name "selfiebot" git commit -m "Update docs after merge to master"