Explorar o código

fix hugo doc build failed

Shao Yu Lung %!s(int64=8) %!d(string=hai) anos
pai
achega
c539c630ed
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      travis-build.sh

+ 3 - 1
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