Spell "cmp > /dev/null" as "cmp -s".
Suggested by: dougb
This commit is contained in:
parent
723c596167
commit
24a3ff142f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user