From c539c630edd08391260e1000fe1403f81ee2bee9 Mon Sep 17 00:00:00 2001 From: Shao Yu Lung Date: Mon, 8 May 2017 00:00:19 +0800 Subject: [PATCH] fix hugo doc build failed --- travis-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/travis-build.sh b/travis-build.sh index 66223d0..fa7e577 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -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