33324b068a
(above all, a use-after-free crash on restart/exit). OK landry@ Maintainer timed out
16 lines
832 B
Plaintext
16 lines
832 B
Plaintext
$OpenBSD: patch-util_fluxbox-generate_menu_in,v 1.7 2011/04/24 17:32:24 dcoppa Exp $
|
|
|
|
Adapt to our non-GNU grep
|
|
|
|
--- util/fluxbox-generate_menu.in.orig Thu Sep 9 14:39:18 2010
|
|
+++ util/fluxbox-generate_menu.in Tue Apr 19 14:19:02 2011
|
|
@@ -308,7 +308,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
|