Code

Bug fixes
authorTon Voon <tonvoon@users.sourceforge.net>
Mon, 24 Mar 2003 02:44:17 +0000 (02:44 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Mon, 24 Mar 2003 02:44:17 +0000 (02:44 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@456 f882894a-f735-0410-b71e-b25c423dba1c

tools/mail_error
tools/sfsnapshot

index 4349c21d68a648ebd2d487aa216c11543671b481..184827e92e24dba93e3779d83645b48408676ec9 100755 (executable)
@@ -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
index 8e82f298254377ef38d5905de592c109b6fa45dc..665285af29eeced2d7038779ee5a608e7e6805ae 100755 (executable)
@@ -53,6 +53,7 @@ function make_dist {
 }
 
 # Set working variables
+PATH=$HOME/local/bin:$PATH
 PROJECT=nagiosplug
 IN=${HOME}/tmp_snapshot
 OUT_SERVER="shell.sf.net"