diff options
-rwxr-xr-x | tools/mail_error | 3 | ||||
-rwxr-xr-x | tools/sfsnapshot | 1 |
2 files changed, 2 insertions, 2 deletions
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 | |||
13 | esac | 13 | esac |
14 | done | 14 | done |
15 | shift $(($OPTIND-1)) | 15 | shift $(($OPTIND-1)) |
16 | echo "output_file=$output_file email=$email" | ||
17 | 16 | ||
18 | [[ -z $1 ]] && die "Must specify command" | 17 | [[ -z $1 ]] && die "Must specify command" |
19 | 18 | ||
20 | if ! "$@" > $output_file 2>&1 ; then | 19 | if ! "$@" > $output_file 2>&1 ; then |
21 | mail -s "mail_error fail: $@" $email < $output_file | 20 | mail -s "mail_error fail: $1" $email < $output_file |
22 | fi | 21 | fi |
diff --git a/tools/sfsnapshot b/tools/sfsnapshot index 8e82f298..665285af 100755 --- a/tools/sfsnapshot +++ b/tools/sfsnapshot | |||
@@ -53,6 +53,7 @@ function make_dist { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | # Set working variables | 55 | # Set working variables |
56 | PATH=$HOME/local/bin:$PATH | ||
56 | PROJECT=nagiosplug | 57 | PROJECT=nagiosplug |
57 | IN=${HOME}/tmp_snapshot | 58 | IN=${HOME}/tmp_snapshot |
58 | OUT_SERVER="shell.sf.net" | 59 | OUT_SERVER="shell.sf.net" |