Script 'schedule': fix regexp.
This commit is contained in:
parent
3a89bb5e31
commit
6a3b5d0704
2
schedule
2
schedule
@ -185,7 +185,7 @@ info_output_term() {
|
|||||||
players=$(grep -o "[^ ]*${PLAYER}[^ ]*" <<< "$line")
|
players=$(grep -o "[^ ]*${PLAYER}[^ ]*" <<< "$line")
|
||||||
for name in $players; do
|
for name in $players; do
|
||||||
# PLAYER is a part of 'game_url' or 'result'
|
# 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")
|
line=$(sed -E "s/(${name})/\\$(tput setaf 1)\1\\$(tput sgr0)/g" <<< "$line")
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user