When there are no interesting information in output, exit with 0.
PR: conf/92299 Submitted by: Petr Rehor <prehor@gmail.com> Approved by: philip (mentor) MFC after: 3 days
This commit is contained in:
parent
8dc6fea589
commit
603c4fe5f3
@ -33,7 +33,7 @@ case "$daily_status_mailq_enable" in
|
||||
*)
|
||||
mailq;;
|
||||
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
|
||||
[ $rc -gt 1 ] && rc=1
|
||||
[ $rc -gt 1 ] && rc=1 || rc=0
|
||||
|
||||
case "$daily_status_include_submit_mailq" in
|
||||
[Yy][Ee][Ss])
|
||||
@ -42,7 +42,7 @@ case "$daily_status_mailq_enable" in
|
||||
echo ""
|
||||
echo "Mail in submit queue:"
|
||||
|
||||
rc=$(case "$daily_status_mailq_shorten" in
|
||||
rc_submit=$(case "$daily_status_mailq_shorten" in
|
||||
[Yy][Ee][Ss])
|
||||
mailq -Ac |
|
||||
egrep -e '^[[:space:]]+[^[:space:]]+@' |
|
||||
@ -53,7 +53,7 @@ case "$daily_status_mailq_enable" in
|
||||
*)
|
||||
mailq -Ac;;
|
||||
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
|
||||
[ $rc -gt 1 ] && rc=1
|
||||
[ $rc_submit -gt 1 ] && rc=1
|
||||
fi;;
|
||||
esac
|
||||
fi;;
|
||||
|
Loading…
Reference in New Issue
Block a user