From fc245408d6975d0813cd4440e7089d987b54d42e Mon Sep 17 00:00:00 2001 From: Daniel Campbell Date: Sun, 25 Jan 2015 04:31:27 -0800 Subject: Fix printf bug in fluxbox-generate_menu --- util/fluxbox-generate_menu.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in index 525315c..33b0153 100755 --- a/util/fluxbox-generate_menu.in +++ b/util/fluxbox-generate_menu.in @@ -330,13 +330,13 @@ 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 - printf "\"${entry_exec}\" \t <${entry_icon}>\n" >> $ICONMAPPING + if ! grep -q -m 1 "^.${execname}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then + printf "\"${execname}\" \t <${entry_icon}>\n" >> $ICONMAPPING else - : echo "# mapping already exists for ${entry_exec}" >> $ICONMAPPING + : echo "# mapping already exists for ${execname}" >> $ICONMAPPING fi else - echo "# No icon file found for $entry_exec" >> $ICONMAPPING + echo "# No icon file found for $execname" >> $ICONMAPPING fi } -- cgit v0.11.2