Do not emit a message on stderr when one of the compared files

is shorter than the other.

Reviewed by:	roberto
MFC after:	3 days
This commit is contained in:
Thomas Quinot 2002-11-16 14:58:39 +00:00
parent 68c2bacd8d
commit da509dd293
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106988

View File

@ -63,7 +63,7 @@ check_diff() {
cp ${tmpf} ${LOG}/${label}.today || rc=3
fi
if ! cmp ${LOG}/${label}.today ${tmpf} >/dev/null; then
if ! cmp -s ${LOG}/${label}.today ${tmpf} >/dev/null; then
[ $rc -lt 1 ] && rc=1
echo ""
echo "${msg}"