start-services: make BREs a little more robust and portable - annna - Annna the… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit c2cdc13f4b1e2effd0e00fb9e357292aad4e5576 | |
parent c6558cda8f3ef0c966a924dd8c98cd24a68f69f2 | |
Author: Quentin Rameau <[email protected]> | |
Date: Mon, 2 Apr 2018 11:32:05 +0200 | |
start-services: make BREs a little more robust and portable | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-start-services | 12 ++++++------ | |
1 file changed, 6 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -39,8 +39,8 @@ then | |
# bitreich-radio | |
{ | |
ls "${iibase}/#bitreich-radio/out" | entr tail -n 1 "${iibase}/#bitrei… | |
- | grep -v --line-buffered -e '[0-9]* -!- .*' \ | |
- | sed -u 's,[0-9]* <\([^ >]*\)> \(.*\)$,\1\n\2,' \ | |
+ | grep -v --line-buffered '[0-9]* -!- ' \ | |
+ | sed -u 's,[0-9]* <\([^ >]*\)> \(.*\),\1\n\2,' \ | |
| { | |
while read user; | |
do | |
@@ -71,8 +71,8 @@ if [ -f "${iibase}/#bitreich-en/out" ]; | |
then | |
{ | |
ls "${iibase}/#bitreich-en/out" | entr tail -n 1 "${iibase}/#bitreich-… | |
- | grep -v --line-buffered -e '[0-9]* -!- .*' \ | |
- | sed -u 's,[0-9]* <\([^ >]*\)> \(.*\)$,\1\n\2,' \ | |
+ | grep -v --line-buffered '[0-9]* -!- ' \ | |
+ | sed -u 's,[0-9]* <\([^ >]*\)> \(.*\),\1\n\2,' \ | |
| { | |
while read user; | |
do | |
@@ -87,8 +87,8 @@ then | |
[ "$user" = "${botname}" ] && continue | |
uri="$(printf "%s\n" "${text}" \ | |
- | sed 's,.*\(http[s]\?://[^ ]*\).*,\1,' \ | |
- | grep -e 'http\(s\|\)://')" | |
+ | sed 's,.*\(https\{0\,1\}://[^ ]\{1\,\}\).*,\1,' \ | |
+ | grep 'https\{0,1\}://[^ ]')" | |
if [ -n "$uri" ]; | |
then | |
urititle="$(curl-grabtitle "${uri}")" |