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:
Matteo Riondato 2006-02-07 08:21:06 +00:00
parent 3c7a743c85
commit 2da6fa9f1f

View File

@ -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;;