Christopher Mullins пре 6 година
родитељ
комит
bd0eae2007
1 измењених фајлова са 5 додато и 1 уклоњено
  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