Explorar o código

That didnt work on Travis (did work locally). Try this...

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

+ 4 - 3
.prepare_docs

@@ -42,10 +42,11 @@ redoc-cli bundle ${API_SPEC_FILE} -o ${redoc_bundle_file} --title 'Milight Hub A
 git fetch origin 'refs/heads/gh-pages:refs/heads/gh-pages'
 git fetch origin 'refs/heads/gh-pages:refs/heads/gh-pages'
 git checkout gh-pages -- branches || prepare_docs_log "Failed to checkout branches from gh-pages, skipping..."
 git checkout gh-pages -- branches || prepare_docs_log "Failed to checkout branches from gh-pages, skipping..."
 
 
-mkdir -p "${BRANCHES_DIR}"
-
 if [ -e "./branches" ]; then
 if [ -e "./branches" ]; then
-  mv ./branches/* "${BRANCHES_DIR}"
+  mkdir -p "${DIST_DIR}"
+  mv "./branches" "${BRANCHES_DIR}"
+else
+  mkdir -p "${BRANCHES_DIR}"
 fi
 fi
 
 
 if [ -e "${DOCS_DIR}/gh-pages" ]; then
 if [ -e "${DOCS_DIR}/gh-pages" ]; then