From 21668f12fe2a09bc94d41fa45769ceff83817956 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Wed, 1 Jun 2016 18:45:49 +0200 Subject: [PATCH] TRAVIS: fix update-gh-pages.sh --- update-gh-pages.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-gh-pages.sh b/update-gh-pages.sh index b3a7240..d1e06a8 100755 --- a/update-gh-pages.sh +++ b/update-gh-pages.sh @@ -22,13 +22,13 @@ git clone --branch=${TARGET_BRANCH} ${REPO} ${TARGET_BRANCH} || exit 1 # docs cd ${TARGET_BRANCH} || exit 1 echo "Removing old docs." -rm -rf . +rm -rf * echo "Adding new docs." cp -rf "${TRAVIS_BUILD_DIR}${DOC_LOCATION}"/* . || exit 1 # If there are no changes to the compiled out (e.g. this is a README update) # then just bail. -if [ -z `git diff --exit-code` ]; then +if [ -z "`git diff --exit-code`" ]; then echo "No changes to the output on this push; exiting." exit 0 fi