Fix printf bug in fluxbox-generate_menu

This commit is contained in:
Daniel Campbell 2015-01-25 04:31:27 -08:00 committed by Mathias Gumz
parent 6721c7c70b
commit fc245408d6

View file

@ -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
}