Quiet bin/dump_crontab, when nothing is done.

This commit is contained in:
Laurent Rineau 2012-11-13 14:01:01 +01:00
parent 2f8be5406d
commit 92eb710f3d
1 changed files with 7 additions and 3 deletions

View File

@ -3,10 +3,14 @@
cd $HOME/CGAL/next/Maintenance/infrastructure/cgal.geometryfactory.com/
crontab -l >| crontab
if [ -d ../../../.git ]; then
git pull 2> /dev/null
git pull --quiet
git add crontab
git commit -m 'updated crontab (automated commit)' && git push origin master
if git commit -m 'updated crontab (automated commit)' > /dev/null; then
git push origin master
else
true
fi
else
svn add -q crontab
svn add -q crontab
[ -n "`svn st crontab`" ] && svn ci -m 'updated crontab (automated commit)' crontab
fi