From 797093c04abc547b2384406f2bfe9beb5fd8f4d1 Mon Sep 17 00:00:00 2001 From: vonavi Date: Sat, 6 Sep 2014 14:20:41 +0400 Subject: [PATCH] Script 'parse-games': don't include the date for unaccomplished game. --- parse-games | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parse-games b/parse-games index dc5a871..dfe94b3 100755 --- a/parse-games +++ b/parse-games @@ -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'"