5 export PATH=$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
6 export GIT_SSH_COMMAND='ssh -i $HOME/.ssh/id_xonotic'
8 cd ~/xonotic/data/xonotic-data.pk3dir
10 git fetch origin master
11 if git rev-list origin/master..master | grep .; then
12 echo "Blocked by local changes. Bailing out."
15 git reset --hard origin/master
18 # po: just update the translations.
19 # all: also update the translation template. Will create a new commit every time, as the date header changes.
23 if [ x"`git ls-files -dm`" = x".tx/merge-base" ]; then
27 git commit -a -m'Transifex autosync'
28 git push origin master