Fix printf bug in fluxbox-generate_menu
This commit is contained in:
parent
6721c7c70b
commit
fc245408d6
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue