Skip to content

Commit

Permalink
Fix printf bug in fluxbox-generate_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Campbell authored and mgumz committed Jan 25, 2015
1 parent 6721c7c commit fc24540
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/fluxbox-generate_menu.in
Expand Up @@ -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
}

Expand Down

0 comments on commit fc24540

Please sign in to comment.