From 105f061f0df763cab283015867180d659d10fd32 Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Mon, 24 Oct 2011 12:17:41 +0000 Subject: [PATCH] --- Sphinx.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 .`