From 31c4832f1130b3233664c45a4934c73a249a2c87 Mon Sep 17 00:00:00 2001 From: Benedikt Böhm Date: Sat, 17 Apr 2010 09:36:52 +0200 Subject: only print mail to stdout in verbose mode --- README.rst | 2 +- bin/porticron | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 61b71bd..b6b5e6f 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,7 @@ porticron ========= :Author: `Benedikt Böhm `_ -:Version: 0.5.1 +:Version: 0.5.2 :Web: http://bb.xnull.de/projects/porticron/ :Source: http://git.xnull.de/gitweb/?p=porticron.git (also on `github `_) :Download: http://bb.xnull.de/projects/porticron/dist/ diff --git a/bin/porticron b/bin/porticron index 140277b..b65e41b 100755 --- a/bin/porticron +++ b/bin/porticron @@ -1,7 +1,7 @@ #!/bin/bash # vim: set fileencoding=utf-8 ts=4 sw=4 noexpandtab -PORTICRON_VERSION="0.5.1" +PORTICRON_VERSION="0.5.2" version() { echo "porticron ${PORTICRON_VERSION}" @@ -27,7 +27,11 @@ log() { send_mail() { if [[ ${NOMAIL} -eq 1 ]]; then - cat + if [[ ${VERBOSE} -eq 1 ]]; then + cat + else + cat > /dev/null + fi else ${SENDMAIL:-/usr/sbin/sendmail} -t fi -- cgit v1.2.3-65-gdbad