X-Git-Url: https://git.madduck.net/code/fbi-announce.git/blobdiff_plain/11158dc6983305ea8c51990dbbb2643c30de1c4e..ca7d9b932db940fb5dc15cadbddcc873de482545:/fbi-announce.sh diff --git a/fbi-announce.sh b/fbi-announce.sh index b7f0692..d8542e8 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 @@ -99,7 +99,7 @@ ${sendmail} <<_eom ${from:+From: ${from} }To: ${to} Subject: Announce ${project} -Message-Id: +Message-Id: ${msg} _eom