Script 'schedule': fix regexp.

This commit is contained in:
vonavi 2014-04-24 14:00:26 +03:00
parent 3a89bb5e31
commit 6a3b5d0704

View File

@ -185,7 +185,7 @@ info_output_term() {
players=$(grep -o "[^ ]*${PLAYER}[^ ]*" <<< "$line")
for name in $players; do
# PLAYER is a part of 'game_url' or 'result'
[[ "$name" =~ ^http:\/\/ || "$name" =~ ^(1-0|0-1|1\/2)$ ]] && continue
[[ "$name" =~ ^http:// || "$name" =~ ^(1-0|0-1|1/2)$ ]] && continue
line=$(sed -E "s/(${name})/\\$(tput setaf 1)\1\\$(tput sgr0)/g" <<< "$line")
done