From 7c4edae57a5b24d39cf106a5f9ec66b8d2a6a7f7 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 21 May 2010 16:19:06 +0200 Subject: [PATCH] optional variables may be empty Signed-off-by: martin f. krafft --- fbi-announce.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5