Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud-config-converter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-02-05 13:11:36 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-02-05 13:11:36 +0300
commitf4d17a7b152cbd2d656efe5af335f1586a13b49c (patch)
treef37b62cd614adac8309e410cc83c5c43f2f03351
parent0cce74ab22a0d43b8382693b5820f7474a9c67b6 (diff)
push commit when it is not empty
-rwxr-xr-xupdateConfig.sh8
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