summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2009-11-07 02:23:32 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2009-11-07 02:23:32 +0100
commit9e686891791001155d535634572eb0753835e7fd (patch)
treec231b211970f68a9eb9cfcce653308e9bce8fcde /tools
parente067f2d8ac807fd1de2fdbc77e76641c486700b6 (diff)
downloadmonitoring-plugins-9e686891791001155d535634572eb0753835e7fd.tar.gz
git-notify: Don't abort if mail(1) exits non-zero
As nothing in git-notify depends on the success of the mail(1) call, don't abort if it fails, just spit out a warning.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/git-notify2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/git-notify b/tools/git-notify
index 548f7da9..265f37b1 100755
--- a/tools/git-notify
+++ b/tools/git-notify
@@ -307,7 +307,7 @@ sub mail_notification($$$@)
307 } 307 }
308 binmode MAIL, ":utf8"; 308 binmode MAIL, ":utf8";
309 print MAIL join("\n", @text), "\n"; 309 print MAIL join("\n", @text), "\n";
310 close MAIL or die $! ? "Cannot execute $mailer: $!" : "$mailer exited with status: $?"; 310 close MAIL or warn $! ? "Cannot execute $mailer: $!" : "$mailer exited with status: $?";
311 } 311 }
312} 312}
313 313