overwritting git commit failure exit code

This commit is contained in:
checktheroads 2019-06-17 02:17:23 -07:00
parent 5f1655a791
commit 3530100323
2 changed files with 15 additions and 4 deletions

View file

@ -29,7 +29,7 @@
## Documentation
Documentation can be found [here](https://hyperglass.readthedocs.io), or in the `docs/` directory.
[Documentation can be found here](https://hyperglass.readthedocs.io).
## Preview

View file

@ -1,12 +1,23 @@
#!/bin/sh
setup_git() {
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
commit_black() {
git add hyperglass/ *.py
git commit --message "Black Formatting - travis $TRAVIS_BUILD_NUMBER"
}
commit_pylint() {
git add pylint.svg
git commit --message "Pylint Badge - travis $TRAVIS_BUILD_NUMBER"
}
setup_git() {
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
}
setup_git
commit_black
commit_pylint
if [ $? -ne 0 ]; then
exit 0