]> 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:

optional variables may be empty
authormartin f. krafft <madduck@madduck.net>
Fri, 21 May 2010 14:19:06 +0000 (16:19 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 21 May 2010 14:19:06 +0000 (16:19 +0200)
Signed-off-by: martin f. krafft <madduck@madduck.net>
fbi-announce.sh

index b7f06921c6332b09970c76f0db2778ccb8a59b64..76b3581a9bbb602b196df7f849ac7c257dd5257e 100755 (executable)
@@ -58,7 +58,7 @@ from=$(git config hooks.fbi-emailsender 2>/dev/null ||:)
 to="commit@commit.ganneff.de" #TODO: possibly factor out to config
 
 # mail submission client to use
 to="commit@commit.ganneff.de" #TODO: possibly factor out to config
 
 # mail submission client to use
-if [ -n "$FBI_ANNOUNCE_TO_STDOUT" ]; then
+if [ -n "${FBI_ANNOUNCE_TO_STDOUT:-}" ]; then
   sendmail="cat"
   echo >&2 'I: outputting to stdout since $FBI_ANNOUNCE_TO_STDOUT is set.'
 else
   sendmail="cat"
   echo >&2 'I: outputting to stdout since $FBI_ANNOUNCE_TO_STDOUT is set.'
 else