1
Fork 0

Script 'parse-games': don't include the date for unaccomplished game.

master
vonavi 2014-09-06 14:20:41 +04:00
parent 1739db4190
commit 797093c04a
1 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,6 @@ function parse_tour_info {
local black=${BASH_REMATCH[3]}
local result=${BASH_REMATCH[5]}
[[ $date =~ \? ]] && date=
# Change the representation of result
[[ $result == 1/2 ]] && result=1/2-1/2
@ -49,7 +48,7 @@ function parse_tour_info {
function parse_to_ini {
echo "[game${game_counter}]"
echo "round = $round"
echo "date = $date"
[[ ! $date =~ \? ]] && echo "date = $date"
echo "white = $white"
echo "black = $black"
echo "result = '$result'"