Check if game results have been changed.
This commit is contained in:
parent
41a8f2b26f
commit
2b2b975e68
5
mktable
5
mktable
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user