silence cmp

cmp's '-s' flag is POSIX - if it's as portable as that's supposed to
mean, that might be used instead.
This commit is contained in:
slakmagik 2011-03-28 22:21:57 -04:00 committed by Mathias Gumz
parent 2790b996f3
commit e312f35d1a

View file

@ -518,7 +518,7 @@ rm -f ${MENUFILENAME}.tmp
touch ${MENUFILENAME}.tmp
counter=10 # prevent looping in odd circumstances
until [ $counter -lt 1 ] || \
cmp ${MENUFILENAME} ${MENUFILENAME}.tmp 2>&1 > /dev/null; do
cmp ${MENUFILENAME} ${MENUFILENAME}.tmp >/dev/null 2>&1; do
[ -s ${MENUFILENAME}.tmp ] && mv ${MENUFILENAME}.tmp ${MENUFILENAME}
counter=`expr $counter - 1`
grep -v '^$' ${MENUFILENAME}|sed -e "/^\[submenu].*/{