URI: 
       start-services: make BREs a little more robust and portable - annna - Annna the nice friendly bot.
  HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
       ---
   DIR commit c2cdc13f4b1e2effd0e00fb9e357292aad4e5576
   DIR parent c6558cda8f3ef0c966a924dd8c98cd24a68f69f2
  HTML Author: Quentin Rameau <quinq@fifth.space>
       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 <annna@bitreich.org>
       
       Diffstat:
         M annna-start-services                |      12 ++++++------
       
       1 file changed, 6 insertions(+), 6 deletions(-)
       ---
   DIR 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}/#bitreich-radio/out" \
       -                | 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-en/out" \
       -                | 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}")"