From 452093680ead44f8f360bc1b29486f4b8808e00f Mon Sep 17 00:00:00 2001 From: vonavi Date: Sun, 7 Sep 2014 16:43:00 +0400 Subject: [PATCH] Script 'schedule': slight fixes. --- schedule | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schedule b/schedule index 34ea939..513cf14 100755 --- a/schedule +++ b/schedule @@ -126,7 +126,7 @@ function output_tour_info { # Keep game info if needed, and store it in variables 'white', # 'black', 'result', and 'game_date' if keep_game_info; then - output_lines+=$(sed -E "s/$date_re\ +//" <<< "$line") + output_lines+=$(sed -E "s/$date_re +//" <<< "$line") # Append the link of game to the end of output line if $SHOW_LINK; then [[ -n $result ]] && append_game_url @@ -214,12 +214,12 @@ function info_output_term { # PLAYER is a part of 'game_url' or 'result' [[ $name =~ ^http:// || $name =~ ^${res_re}$ ]] && continue - line=$(sed -E "s/(${name})/$(tput setaf 1)\1$(tput sgr0)/g" <<< "$line") + line=$(sed -E "s/(${name})/$(tput setaf 1)\1$(tput sgr0)/" <<< "$line") done fi # Highlight result - line=$(sed -E "s~ ${res_re}( |$)~ $(tput setaf 6)\1$(tput sgr0)\2~g" <<< "$line") + line=$(sed -E "s~ ${res_re}( |$)~ $(tput setaf 6)\1$(tput sgr0)\2~" <<< "$line") echo "$line" done