X-Git-Url: https://git.madduck.net/code/fbi-announce.git/blobdiff_plain/827170985554cfd20544fb4fab5a124e69dfaafb..refs/heads/master:/fbi-announce.sh?ds=inline 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}