Introduction
Introduction Statistics Contact Development Disclaimer Help
Commit quinq sed changes. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 997ca999107c145cde16263504e5fa539714abb3
parent cfca604f39b7db50d890aaa36f1a933d632f99f4
Author: Annna Robert-Houdin <[email protected]>
Date: Sat, 28 Dec 2019 22:09:52 +0100
Commit quinq sed changes.
Diffstat:
M annna-start-services | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/annna-start-services b/annna-start-services
@@ -89,8 +89,7 @@ then
[ "$user" = "${botname}" ] && continue
uri="$(printf "%s\n" "${text}" \
- | grep 'https\{0,1\}://[^ ]\{1,\}' \
- | sed "s_.*\(https\{0,1\}://[^]:?#[@!$&'()*+,;= ]\{1,\…
+ | sed -n '/.*\(https\{0,1\}:\/\/[^ ]\{1,\}\).*/s//\1/p…
case "${text}" in
*\#nospoil*)
;;
@@ -99,7 +98,7 @@ then
then
tmpf=$(mktemp)
fetch-url "${uri}" > "${tmpf}"
- urititle="$(grabtitle < "${tmpf}" | sed 's@^ *…
+ urititle="$(grabtitle < "${tmpf}" | sed 's/^ *…
if [ -n "$urititle" ];
then
case "${urititle}" in
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.