From 21c0dad0c5fc922e3228b4be9d9b803aa554fb1b Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 24 Mar 2003 02:44:17 +0000 Subject: Bug fixes git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@456 f882894a-f735-0410-b71e-b25c423dba1c --- tools/mail_error | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/mail_error') diff --git a/tools/mail_error b/tools/mail_error index 4349c21d..184827e9 100755 --- a/tools/mail_error +++ b/tools/mail_error @@ -13,10 +13,9 @@ while getopts "o:m:" c; do esac done shift $(($OPTIND-1)) -echo "output_file=$output_file email=$email" [[ -z $1 ]] && die "Must specify command" if ! "$@" > $output_file 2>&1 ; then - mail -s "mail_error fail: $@" $email < $output_file + mail -s "mail_error fail: $1" $email < $output_file fi -- cgit v1.2.3-74-g34f1