From e312f35d1a8e5aa33c16d22896ad2d51e3c84028 Mon Sep 17 00:00:00 2001 From: slakmagik Date: Mon, 28 Mar 2011 22:21:57 -0400 Subject: silence cmp cmp's '-s' flag is POSIX - if it's as portable as that's supposed to mean, that might be used instead. --- util/fluxbox-generate_menu.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in index ee36457..fe1af2f 100755 --- a/util/fluxbox-generate_menu.in +++ b/util/fluxbox-generate_menu.in @@ -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].*/{ -- cgit v0.11.2