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