diff --git a/Sphinx.sh b/Sphinx.sh index 9671d55..3b84aa0 100755 --- a/Sphinx.sh +++ b/Sphinx.sh @@ -121,8 +121,17 @@ then fi liste=`ls config/${HOSTNAME}` - set -a arr `echo "$liste[0]" | awk -F"." '{for(i=1;i<=NF;i++) print $i}'` - + IFS='.' + `cd config/${HOSTNAME}` + for name in `ls` + do + for index in name + do + listeIndex[$i]=$index + (($i++)) + done + done + print ${listIndex} `cat files/config.sphinx >> indexeConf/sphinx.conf` `cp indexeConf/sphinx.conf .`