Not failing the script if a file can't be added
it happens when you want to add a file that is in .gitignore
This commit is contained in:
committed by
GitHub
parent
40d8febe83
commit
0269b4a8b6
@@ -184,7 +184,7 @@ function copy_docs_for_current_version() {
|
||||
git add -A ${ROOT_FOLDER}/${CURRENT_BRANCH}/index.html
|
||||
else
|
||||
cp -rf $f ${ROOT_FOLDER}/${CURRENT_BRANCH}
|
||||
git add -A ${ROOT_FOLDER}/${CURRENT_BRANCH}/$file
|
||||
git add -A ${ROOT_FOLDER}/${CURRENT_BRANCH}/$file || echo "Failed to add the file [$file]"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user