TRAVIS: fix update-gh-pages.sh
This commit is contained in:
parent
6e37e18bc8
commit
21668f12fe
@ -22,13 +22,13 @@ git clone --branch=${TARGET_BRANCH} ${REPO} ${TARGET_BRANCH} || exit 1
|
|||||||
# docs
|
# docs
|
||||||
cd ${TARGET_BRANCH} || exit 1
|
cd ${TARGET_BRANCH} || exit 1
|
||||||
echo "Removing old docs."
|
echo "Removing old docs."
|
||||||
rm -rf .
|
rm -rf *
|
||||||
echo "Adding new docs."
|
echo "Adding new docs."
|
||||||
cp -rf "${TRAVIS_BUILD_DIR}${DOC_LOCATION}"/* . || exit 1
|
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)
|
# If there are no changes to the compiled out (e.g. this is a README update)
|
||||||
# then just bail.
|
# 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."
|
echo "No changes to the output on this push; exiting."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user