From c48b30c6a0eb568e625df42b5310dc3705eced5d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 22 May 2010 13:18:16 +0200 Subject: [PATCH] trim message in case url is empty Signed-off-by: martin f. krafft --- fbi-announce.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fbi-announce.sh b/fbi-announce.sh index c9ee6db..7084136 100755 --- a/fbi-announce.sh +++ b/fbi-announce.sh @@ -85,6 +85,11 @@ else eval "msg=\"$msg\"" fi +# trim $msg of empty []'s in case no URL was provided, might be better done in +# the above by making the generation conditional, but this will also do for +# now. +msg="${msg% []}" + ${sendmail} <<_eom ${from:+From: ${from} }To: ${to} -- 2.39.2