Correct email subject.
This commit is contained in:
parent
69bcfd59ad
commit
d5190572bb
1 changed files with 2 additions and 2 deletions
|
|
@ -35,12 +35,12 @@ done
|
||||||
# Send the message.
|
# Send the message.
|
||||||
if [[ -n "${EMAIL_TO[*]}" ]]; then
|
if [[ -n "${EMAIL_TO[*]}" ]]; then
|
||||||
if hash mailx >/dev/null 2>&1; then
|
if hash mailx >/dev/null 2>&1; then
|
||||||
mailx -S "from=$EMAIL_FROM" -s "Mail queue" "${EMAIL_TO[@]}" <"$OUTPUT_FILE" 2>/dev/null || {
|
mailx -S "from=$EMAIL_FROM" -s "Git statuses" "${EMAIL_TO[@]}" <"$OUTPUT_FILE" 2>/dev/null || {
|
||||||
printf "%s: %s\\n" "${0##*/}" "mailx command failed" >&2
|
printf "%s: %s\\n" "${0##*/}" "mailx command failed" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
elif hash mail >/dev/null 2>&1; then
|
elif hash mail >/dev/null 2>&1; then
|
||||||
mail -r "$EMAIL_FROM" -s "Mail queue" "${EMAIL_TO[@]}" <"$OUTPUT_FILE" 2>/dev/null || {
|
mail -r "$EMAIL_FROM" -s "Git statuses" "${EMAIL_TO[@]}" <"$OUTPUT_FILE" 2>/dev/null || {
|
||||||
printf "%s: %s\\n" "${0##*/}" "mail command failed" >&2
|
printf "%s: %s\\n" "${0##*/}" "mail command failed" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue