From f4db3cef661bbb4f0b434257e6e7bc7c1e87cb69 Mon Sep 17 00:00:00 2001 From: edoapra Date: Mon, 3 Jan 2022 14:54:02 -0800 Subject: [PATCH] do not update the docs directory if present [ci skip] --- contrib/mkdocs/build_website.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/mkdocs/build_website.sh b/contrib/mkdocs/build_website.sh index 8c8bec9c59..5a5c87e179 100755 --- a/contrib/mkdocs/build_website.sh +++ b/contrib/mkdocs/build_website.sh @@ -11,11 +11,19 @@ if [[ "${MYPWD}" != ${NWCHEM_TOP}/contrib/mkdocs ]]; then exit fi #fresh clone of wiki +if [ -d "docs" ]; then + echo ' WARNING' + echo ' since the docs directory is already present, ' + echo ' it will not be updated' + echo ' ' + cd docs +else rm -rf docs #archivedforum git clone --depth 1 git@github.com:nwchemgit/nwchem-wiki.git docs cd docs git clone --depth 1 git@github.com:nwchemgit/archivedforum.git mv archivedforum/Special_AWCforum . +fi #rsync -av archivedforum/Special_AWCforum docs/. #cd docs #git pull