mirror of https://github.com/CGAL/cgal
18 lines
444 B
Bash
Executable File
18 lines
444 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
cd $HOME/infrastructure
|
|
crontab -l >| crontab
|
|
if [ -d ../../../.git ]; then
|
|
git pull --ff-only --quiet || exit $?
|
|
git diff --cached --quiet || exit $?
|
|
git add crontab
|
|
if git commit -m 'updated crontab (automated commit)' > /dev/null; then
|
|
git push cgal master
|
|
else
|
|
true
|
|
fi
|
|
else
|
|
svn add -q crontab
|
|
[ -n "`svn st crontab`" ] && svn ci -m 'updated crontab (automated commit)' crontab
|
|
fi
|