From 6cec418a035998b2017576d2e1f88d3834b629b7 Mon Sep 17 00:00:00 2001 From: vonavi Date: Sun, 26 Oct 2014 17:43:35 +0300 Subject: [PATCH] Fix sed expression for storing a result as '1/2'. --- game-add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-add b/game-add index 31fe81f..bc84abf 100755 --- a/game-add +++ b/game-add @@ -180,7 +180,7 @@ function game_add_to_repo { [[ $result == 1/2-1/2 ]] && result=1/2 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" }