search subdirectories when looking for icons
This commit is contained in:
parent
552d9a70bd
commit
d6e009af98
1 changed files with 3 additions and 2 deletions
|
@ -252,8 +252,9 @@ doSearchLoop(){
|
|||
iconNOext="${temp_icon%%.*}"
|
||||
[ -d "$ICONPATH" ] && for ICONEXT in .xpm .png .gif ; do
|
||||
## echo "::: $ICONPATH/$iconNOext$ICONEXT" >> $ICONMAPPING
|
||||
if [ -f "$ICONPATH/$iconNOext$ICONEXT" ]; then
|
||||
echo "$ICONPATH/$iconNOext$ICONEXT"
|
||||
realpath=`find "$ICONPATH" -type f -name "$iconNOext$ICONEXT" | head -n 1`
|
||||
if [ -n "$realpath" ]; then
|
||||
echo $realpath
|
||||
return 0;
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue