Christopher Mullins %!s(int64=6) %!d(string=hai) anos
pai
achega
bd0eae2007
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      .prepare_docs

+ 5 - 1
.prepare_docs

@@ -48,7 +48,11 @@ else
   mkdir -p "${BRANCHES_DIR}"
 fi
 
-cp -r ${DOCS_DIR}/gh-pages/* "${DIST_DIR}"
+if [ -e "${DOCS_DIR}/gh-pages" ]; then
+  cp -r ${DOCS_DIR}/gh-pages/* "${DIST_DIR}"
+else
+  prepare_docs_log "Skipping copy of gh-pages dir, doesn't exist"
+fi
 
 # Create the docs bundle for our ref.  This will be the redoc bundle + a
 # snapshot of the OpenAPI spec