diff --git a/Sphinx.sh b/Sphinx.sh index f2fbac5..426fe30 100755 --- a/Sphinx.sh +++ b/Sphinx.sh @@ -123,8 +123,11 @@ then liste=`ls config/${HOSTNAME}` IFS='.' `cd config/${HOSTNAME}` - a=($(echo $string | nawk -F":" '{$1=$1; print}')) - exit + for name in `ls` + do + a=($(echo $name | nawk -F"." '{$1=$1; print}')) + done + echo ${listIndex[0]};exit `cat files/config.sphinx >> indexeConf/sphinx.conf` `cp indexeConf/sphinx.conf .`