summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/portsnap/portsnap/portsnap.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/portsnap/portsnap/portsnap.sh b/usr.sbin/portsnap/portsnap/portsnap.sh
index 7ff1f6b..a30c11b 100644
--- a/usr.sbin/portsnap/portsnap/portsnap.sh
+++ b/usr.sbin/portsnap/portsnap/portsnap.sh
@@ -803,7 +803,8 @@ update_run() {
return 0
fi
- if sort ${WORKDIR}/INDEX | cmp ${PORTSDIR}/.portsnap.INDEX -; then
+ if sort ${WORKDIR}/INDEX |
+ cmp ${PORTSDIR}/.portsnap.INDEX - >/dev/null; then
echo "Ports tree is already up to date."
return 0
fi
OpenPOWER on IntegriCloud