Commit afd837b7 authored by Fjen Undso's avatar Fjen Undso
Browse files

fix mailsending

parent ce666a82
......@@ -62,7 +62,7 @@ warn() {
error() {
echo "ERROR: $1" >&2
if wants_mail && [[ -n "$2" ]]; then
if wants_mail && [[ -z "$2" ]]; then
mail -s "MySQL BACKUP FAILED" "$ADMINMAIL" <<- EOF
Date: $(date --rfc-3339=seconds)
Hostname: $(hostname)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment