Просмотр исходного кода

Bug fixes

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@456 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon 23 лет назад
Родитель
Сommit
21c0dad0c5
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 2
      tools/mail_error
  2. 1 0
      tools/sfsnapshot

+ 1 - 2
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

+ 1 - 0
tools/sfsnapshot

@@ -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"