forked from github/server
Check exit code directly
This commit is contained in:
parent
0857e363e5
commit
a02c80cf76
|
@ -43,8 +43,7 @@ done
|
||||||
addr=$1
|
addr=$1
|
||||||
subject=$2
|
subject=$2
|
||||||
shift 2
|
shift 2
|
||||||
mutt -F "$ERESSEA/etc/muttrc" -s "$subject" -a "$@" -- "$addr" < "$TEMPLATE"
|
|
||||||
|
|
||||||
if [ $? -ne 0 ] ; then
|
mutt -F "$ERESSEA/etc/muttrc" -s "$subject" -a "$@" -- "$addr" \
|
||||||
echo "Sending failed for email/report: $2/$3"
|
< "$TEMPLATE" || echo "Sending failed for email/report: $2/$3"
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue