diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-02-05 13:11:36 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-02-05 13:11:36 +0300 |
commit | f4d17a7b152cbd2d656efe5af335f1586a13b49c (patch) | |
tree | f37b62cd614adac8309e410cc83c5c43f2f03351 | |
parent | 0cce74ab22a0d43b8382693b5820f7474a9c67b6 (diff) |
push commit when it is not empty
-rwxr-xr-x | updateConfig.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/updateConfig.sh b/updateConfig.sh index c1dd97d..d02b768 100755 --- a/updateConfig.sh +++ b/updateConfig.sh @@ -29,9 +29,13 @@ do cd /tmp/owncloud-documentation # invokes an output if something has changed - git status -s + status=$(git status -s) - git commit --allow-empty -qam 'generate documentation from config.sample.php' + if [ -n "$status" ]; then + echo "Push $branch" + git commit -qam 'generate documentation from config.sample.php' + git push + fi # cleanup rm -rf /tmp/config.sample.php |