reduce keyword splitting code a bit - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit d11be415933db76b3339637fc93b11336137666a
(DIR) parent 4196051654532e3ec00421b6fbaeb425c6418b6f
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Mon, 8 Mar 2021 00:16:27 +0100
reduce keyword splitting code a bit
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-start-services | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
(DIR) 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}/${channel}/out" \
- | 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}"