From 1eda9c587cfed54b4d3071cd768232e4a0a4ddda Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Mon, 24 Oct 2011 09:35:49 +0000 Subject: [PATCH] --- Sphinx.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 .`