#!/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 0)
+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