diff --git a/warn-git-status b/warn-git-status index 931504f..641ec13 100755 --- a/warn-git-status +++ b/warn-git-status @@ -24,6 +24,7 @@ done exit 0 } +# Send the message. if [[ -n "${EMAIL_TO[*]}" ]]; then mailx "${MAILX_ARGS[@]}" -S "from=$EMAIL_FROM" -s "Git statuses" "${EMAIL_TO[@]}" <<<"$(cat "$OUTPUT_FILE")" 2>/dev/null || { printf "%s: %s\\n" "${0##*/}" "mailx command failed" >&2