fix hugo doc build failed

This commit is contained in:
Shao Yu Lung 2017-05-08 00:00:19 +08:00
parent 08b35e63d6
commit c539c630ed
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