Check if game results have been changed.

This commit is contained in:
vonavi 2013-10-09 11:22:53 +03:00
parent 41a8f2b26f
commit 2b2b975e68

View File

@ -9,6 +9,10 @@ git checkout master
./tour-parse > $results
git add $results
git commit -m "Update game results."
# Successful `git commit' returns exit code `0'
ret_code=$?
if [[ $ret_code == 0 ]]; then
# Update the tournament table
bin/lorchess > temp_table.html
@ -20,3 +24,4 @@ git checkout master
# Check the difference between game results
git diff HEAD^ HEAD -- $results
fi