Don't recreate old docs (#5243)

This commit is contained in:
Sylvain Gugger
2020-06-24 09:59:07 -04:00
committed by GitHub
parent b29683736a
commit 64c393ee74

View File

@@ -5,7 +5,7 @@ function deploy_doc(){
git checkout $1
if [ ! -z "$2" ]
then
if [ -d "$dir/$2" ]; then
if [ "$2" != "master" ] && ssh -oStrictHostKeyChecking=no $doc "[ -d $dir/$2 ]"; then
echo "Directory" $2 "already exists"
else
echo "Pushing version" $2