diff --git a/Sphinx.sh b/Sphinx.sh index 16d10d1..baa8922 100755 --- a/Sphinx.sh +++ b/Sphinx.sh @@ -121,14 +121,8 @@ then fi liste=`ls config/${HOSTNAME}` - old="$IFS" - IFS = . - set "$liste" - - for index in $* - do - echo -e "$index" - done + set -A arr `echo "$liste[0]" | awk -F"." '{for(i=1;i<=NF;i++) print $i}'` + `cat files/config.sphinx >> indexeConf/sphinx.conf` `cp indexeConf/sphinx.conf .`