openbsd-ports/x11/fluxbox/patches/patch-util_fluxbox-generate_menu_in

13 lines
803 B
Plaintext
Raw Normal View History

$OpenBSD: patch-util_fluxbox-generate_menu_in,v 1.6 2006/01/25 03:57:44 david Exp $
--- util/fluxbox-generate_menu.in.orig Thu Aug 25 11:52:50 2005
+++ util/fluxbox-generate_menu.in Mon Jan 23 03:36:56 2006
@@ -343,7 +343,7 @@ searchForIcon(){
# echo "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>"
if [ -f "$entry_icon" ]; then
# if icon exists and entry does not already exists, add it
- if ! grep -q -m 1 "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then
+ if ! grep -q "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then
echo -e "\"${entry_exec}\" \t <${entry_icon}>" >> $ICONMAPPING
else
: echo "# mapping already exists for ${entry_exec}" >> $ICONMAPPING