aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Campbell <dlcampbell@gmx.com>2015-01-25 12:31:27 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-25 12:37:31 (GMT)
commitfc245408d6975d0813cd4440e7089d987b54d42e (patch)
treec17d3d5f408e2558d23e8b628cb48375fbcda8fe
parent6721c7c70b25260bfc1753c1563e079a95c32e31 (diff)
downloadfluxbox-fc245408d6975d0813cd4440e7089d987b54d42e.zip
fluxbox-fc245408d6975d0813cd4440e7089d987b54d42e.tar.bz2
Fix printf bug in fluxbox-generate_menu
-rwxr-xr-xutil/fluxbox-generate_menu.in8
1 files 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(){
330 # echo "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" 330 # echo "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>"
331 if [ -f "$entry_icon" ]; then 331 if [ -f "$entry_icon" ]; then
332 # if icon exists and entry does not already exists, add it 332 # if icon exists and entry does not already exists, add it
333 if ! grep -q -m 1 "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then 333 if ! grep -q -m 1 "^.${execname}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then
334 printf "\"${entry_exec}\" \t <${entry_icon}>\n" >> $ICONMAPPING 334 printf "\"${execname}\" \t <${entry_icon}>\n" >> $ICONMAPPING
335 else 335 else
336 : echo "# mapping already exists for ${entry_exec}" >> $ICONMAPPING 336 : echo "# mapping already exists for ${execname}" >> $ICONMAPPING
337 fi 337 fi
338 else 338 else
339 echo "# No icon file found for $entry_exec" >> $ICONMAPPING 339 echo "# No icon file found for $execname" >> $ICONMAPPING
340 fi 340 fi
341} 341}
342 342