Browse Source

TRAVIS: fix update-gh-pages.sh

Julian Ospald 3 years ago
parent
commit
21668f12fe
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      update-gh-pages.sh

+ 2
- 2
update-gh-pages.sh View File

@@ -22,13 +22,13 @@ git clone --branch=${TARGET_BRANCH} ${REPO} ${TARGET_BRANCH} || exit 1
22 22
 # docs
23 23
 cd ${TARGET_BRANCH} || exit 1
24 24
 echo "Removing old docs."
25
-rm -rf .
25
+rm -rf *
26 26
 echo "Adding new docs."
27 27
 cp -rf "${TRAVIS_BUILD_DIR}${DOC_LOCATION}"/* . || exit 1
28 28
 
29 29
 # If there are no changes to the compiled out (e.g. this is a README update)
30 30
 # then just bail.
31
-if [ -z `git diff --exit-code` ]; then
31
+if [ -z "`git diff --exit-code`" ]; then
32 32
     echo "No changes to the output on this push; exiting."
33 33
     exit 0
34 34
 fi