Scripts: modify regexps, because no slash anymore in game results.
This commit is contained in:
		
							
								
								
									
										2
									
								
								game-add
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								game-add
									
									
									
									
									
								
							| @@ -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 | ||||
|  | ||||
|   | ||||
							
								
								
									
										2
									
								
								schedule
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								schedule
									
									
									
									
									
								
							| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user