From e0396a82f2c3b35a694fbdae29857507196123a2 Mon Sep 17 00:00:00 2001 From: cperciva Date: Sun, 14 Aug 2005 02:45:04 +0000 Subject: [PATCH] Spell "cmp > /dev/null" as "cmp -s". Suggested by: dougb --- usr.sbin/portsnap/portsnap/portsnap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/portsnap/portsnap/portsnap.sh b/usr.sbin/portsnap/portsnap/portsnap.sh index bf0638746152..38098e7bb073 100644 --- a/usr.sbin/portsnap/portsnap/portsnap.sh +++ b/usr.sbin/portsnap/portsnap/portsnap.sh @@ -808,7 +808,7 @@ update_run() { fi if sort ${WORKDIR}/INDEX | - cmp ${PORTSDIR}/.portsnap.INDEX - >/dev/null; then + cmp -s ${PORTSDIR}/.portsnap.INDEX -; then echo "Ports tree is already up to date." return 0 fi