1
Fork 0

Script 'game-add': fix the length of game record.

master
vonavi 2014-12-13 21:48:24 +03:00
parent bdc1411b4e
commit 9dd00b2eb0
1 changed files with 2 additions and 2 deletions

View File

@ -277,8 +277,8 @@ function game_update_info {
local result=
game_get_result
local spaces=$(( length_max - rec_length ))
local sep=$(printf "%${spaces}s" " ")
local spaces=$(( length_max - rec_length )) sep=
(( spaces != 0 )) && sep=$(printf "%${spaces}s" " ")
echo "Updating file ${tour_info}..."
sed -E -i.orig \
"s|^${date_re}( +${white} +- +${black}).*|${game_date}\1${sep}${result}|" \