]> git.madduck.net Git - code/fbi-announce.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

trim message in case url is empty master
authormartin f. krafft <madduck@madduck.net>
Sat, 22 May 2010 11:18:16 +0000 (13:18 +0200)
committermartin f. krafft <madduck@madduck.net>
Sat, 22 May 2010 11:18:16 +0000 (13:18 +0200)
Signed-off-by: martin f. krafft <madduck@madduck.net>
fbi-announce.sh

index c9ee6dbe2aea5d316afe9f27d6ee43dd6c2ce20c..7084136cfc726ce7d44ab8c5001cf51da61b521b 100755 (executable)
@@ -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}