Fix sed expression for storing a result as '1/2'.

This commit is contained in:
vonavi 2014-10-26 17:43:35 +03:00
parent 4e04c3df06
commit 6cec418a03

View File

@ -180,7 +180,7 @@ function game_add_to_repo {
[[ $result == 1/2-1/2 ]] && result=1/2 [[ $result == 1/2-1/2 ]] && result=1/2
sed -E -i.orig \ sed -E -i.orig \
"s/${date_re}( +${white} +- +${black})/${game_date}\1${sep}${result}/" "$tour_info" "s|${date_re}( +${white} +- +${black})|${game_date}\1${sep}${result}|" "$tour_info"
rm "${tour_info}.orig" rm "${tour_info}.orig"
} }