From: Giuseppe Iuculano Date: Wed, 13 Jun 2012 14:34:58 +0000 (+0200) Subject: Fixed regression introduced in 10mail script X-Git-Tag: debian/6.5+svn4324-1~79 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=66527000f17fda58af091b6b9b363eeb90f26552;p=mirror_smartmontools-debian.git Fixed regression introduced in 10mail script Closes: #649515 --- diff --git a/debian/10mail b/debian/10mail index f169d59..f921a33 100644 --- a/debian/10mail +++ b/debian/10mail @@ -1,7 +1,10 @@ #!/bin/bash -e # Send mail if /usr/bin/mail exists -[ -x /usr/bin/mail ] || {echo "Your system does not have /usr/bin/mail. Install the mailx or mailutils package" ; exit 1} +if ! [ -x /usr/bin/mail ]; then + echo "Your system does not have /usr/bin/mail. Install the mailx or mailutils package" + exit 1 +fi input=$1 shift