Christopher Mullins 6 éve
szülő
commit
bd0eae2007
1 módosított fájl, 5 hozzáadás és 1 törlés
  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