1
Fork 0

Scripts: modify regexps, because no slash anymore in game results.

master
vonavi 2015-01-08 13:22:13 +03:00
parent f9b2b32e20
commit e9bafd8838
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ function game_update_info {
echo "Updating file ${tour_info}..."
local date=${game_date:8:2}.${game_date:5:2}.${game_date::4}
sed -E -i.orig \
"s|^${DATE_RE}( +${white} +- +${black}).*|${date}\1${sep}${result}|" \
"s/^${DATE_RE}( +${white} +- +${black}).*/${date}\1${sep}${result}/" \
$tour_info
rm ${tour_info}.orig

View File

@ -223,7 +223,7 @@ function info_output_term {
fi
# Highlight result
line=$(sed -E "s~ ${res_re}( |$)~ $(tput setaf 6)\1-\2$(tput sgr0)\3~" <<< "$line")
line=$(sed -E "s/ ${res_re}( |$)/ $(tput setaf 6)\1-\2$(tput sgr0)\3/" <<< "$line")
echo "$line"
done