aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Böhm <bb@xnull.de>2010-04-17 09:36:52 +0200
committerBenedikt Böhm <bb@xnull.de>2010-04-17 09:36:52 +0200
commit31c4832f1130b3233664c45a4934c73a249a2c87 (patch)
tree4d6b2d92f27bb32395ffc1924dd49f0405e1fd60
parentversion bump (diff)
downloadporticron-31c4832f1130b3233664c45a4934c73a249a2c87.tar.gz
porticron-31c4832f1130b3233664c45a4934c73a249a2c87.tar.bz2
porticron-31c4832f1130b3233664c45a4934c73a249a2c87.zip
only print mail to stdout in verbose modev0.5.2
-rw-r--r--README.rst2
-rwxr-xr-xbin/porticron8
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 <bb@xnull.de>`_
-: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 <http://github.com/hollow/porticron>`_)
: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