Script 'schedule': fix regexp for result highlighting.
This commit is contained in:
parent
10036ba138
commit
881e2f4435
2
schedule
2
schedule
@ -192,7 +192,7 @@ info_output_term() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Highlight result
|
# Highlight result
|
||||||
line=$(sed -E "s/(1-0|0-1|1\\/2)/\\$(tput setaf 6)\1\\$(tput sgr0)/g" <<< "$line")
|
line=$(sed -E "s/ (1-0|0-1|1\\/2)( |$)/ \\$(tput setaf 6)\1\\$(tput sgr0)\2/g" <<< "$line")
|
||||||
|
|
||||||
echo "$line"
|
echo "$line"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user