reduce keyword splitting code a bit - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit d11be415933db76b3339637fc93b11336137666a | |
parent 4196051654532e3ec00421b6fbaeb425c6418b6f | |
Author: Josuah Demangeon <[email protected]> | |
Date: Mon, 8 Mar 2021 00:16:27 +0100 | |
reduce keyword splitting code a bit | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-start-services | 7 ++----- | |
1 file changed, 2 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -835,13 +835,10 @@ do | |
then | |
{ | |
ls "${iibase}/${channel}/out" | entr tail -n 1 "${iibase}/${ch… | |
- | grep -v --line-buffered '[0-9]* -!- ' \ | |
- | sed -u 's,[0-9]* <\([^ >]*\)> \(.*\),\1\n\2,' \ | |
+ | sed -nu 's,[0-9]* <\([^ >]*\)> \(.*\),\1 \2,p' \ | |
| { | |
- while read -r user; | |
+ while read -r user text; | |
do | |
- read -r text | |
- | |
case "${channel}" in | |
\#bitreich-radio) | |
annna_radio "${channel}" "${user}" "${text}" |