From: martin f. krafft Date: Fri, 21 May 2010 14:19:06 +0000 (+0200) Subject: optional variables may be empty X-Git-Url: https://git.madduck.net/code/fbi-announce.git/commitdiff_plain/7c4edae57a5b24d39cf106a5f9ec66b8d2a6a7f7 optional variables may be empty Signed-off-by: martin f. krafft --- diff --git a/fbi-announce.sh b/fbi-announce.sh index b7f0692..76b3581 100755 --- a/fbi-announce.sh +++ b/fbi-announce.sh @@ -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 -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