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%%.*}"
|
iconNOext="${temp_icon%%.*}"
|
||||||
[ -d "$ICONPATH" ] && for ICONEXT in .xpm .png .gif ; do
|
[ -d "$ICONPATH" ] && for ICONEXT in .xpm .png .gif ; do
|
||||||
## echo "::: $ICONPATH/$iconNOext$ICONEXT" >> $ICONMAPPING
|
## echo "::: $ICONPATH/$iconNOext$ICONEXT" >> $ICONMAPPING
|
||||||
if [ -f "$ICONPATH/$iconNOext$ICONEXT" ]; then
|
realpath=`find "$ICONPATH" -type f -name "$iconNOext$ICONEXT" | head -n 1`
|
||||||
echo "$ICONPATH/$iconNOext$ICONEXT"
|
if [ -n "$realpath" ]; then
|
||||||
|
echo $realpath
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue