Merge pull request #908 from bestlong/fix-hugo-rm-fail

Fixing Travis-CI hugo doc build failed
This commit is contained in:
Winfried 2017-05-07 18:47:56 +02:00 committed by GitHub
commit c6245fdaf8
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ if [ -n "${HUGO_VERSION}" ]; then
mv ./${HUGO_BIN}/${HUGO_BIN} $HOME/bin/hugo
# Remove existing docs
rm -r ./docs
if [ -d "./docs" ]; then
rm -r ./docs
fi
# Build docs
cd DOCUMENTATION