Unverified Commit 64c393ee authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Don't recreate old docs (#5243)

parent b2968373
...@@ -5,7 +5,7 @@ function deploy_doc(){ ...@@ -5,7 +5,7 @@ function deploy_doc(){
git checkout $1 git checkout $1
if [ ! -z "$2" ] if [ ! -z "$2" ]
then then
if [ -d "$dir/$2" ]; then if [ "$2" != "master" ] && ssh -oStrictHostKeyChecking=no $doc "[ -d $dir/$2 ]"; then
echo "Directory" $2 "already exists" echo "Directory" $2 "already exists"
else else
echo "Pushing version" $2 echo "Pushing version" $2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment