Adding #gopher-officer tag. - 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 16ccef2c5fe25ab9947421647200541446dd2500 DIR parent c08cdcb74bf0ea3ba987483cc61592b29cd08a6c HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 7 Apr 2024 22:21:44 +0200 Adding #gopher-officer tag. Diffstat: M annna-message-common | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -92,8 +92,11 @@ case "${text}" in then host="$(printf "%s\n" "${uri}" \ | sed 's,.*://\([^/]*\).*,\1,')" - uri="$(printf "%s\n" "${uri}" \ - | sed "s,${host},youtube.com,")" + if [ -n "${host}" ]; + then + uri="$(printf "%s\n" "${uri}" \ + | sed "s,${host},youtube.com,")" + fi fi tmpf=$(mktemp)