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:
parent
2790b996f3
commit
e312f35d1a
1 changed files with 1 additions and 1 deletions
|
@ -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].*/{
|
||||
|
|
Loading…
Reference in a new issue