diff --git a/indexCorpus.sh b/indexCorpus.sh index 791439d..3d9ef59 100755 --- a/indexCorpus.sh +++ b/indexCorpus.sh @@ -15,7 +15,7 @@ chunksMaxLines=4000 #Help and args check -if [ "$#" -ne 3 ] +if [ "$#" -ne 2 ] then echo "" echo "${BLUE}IDfr${NC} - Sisyphe Corpus indexation - 2022/03" @@ -27,15 +27,13 @@ echo "Script Usage : indexCorpus.sh \$FullPath \$Type" echo " \$FullPath = full path to json out file" echo " \$Type = analysis type ${BLUE}generique|detail${NC}" - echo " \$corpusPath = full path of the corpus" echo "" - echo "Exemple : $0 /applis/panist/home/sisyphe_out/1660119726-elsevier2019-2022-08-10-generique/analyse-logs.json generique /work/elsevier/elsevier-2019-livraison-2020-09-15" + echo "Exemple : $0 /applis/panist/home/sisyphe_out/1660119726-elsevier2019-2022-08-10-generique/analyse-logs.json generique" echo "" exit fi fullPath=$1 analysisType=$2 -corpusPath=$3 #Check if $fullPath exists if [ -f $fullPath ] diff --git a/main.go b/main.go index e9ca216..62e8208 100644 --- a/main.go +++ b/main.go @@ -207,7 +207,7 @@ // after process index analyze file if !*noIndexation { log.Println(color.InBlue("Run indexation process")) - result, err := exec.Command("/bin/bash", "indexCorpus.sh", logPath+"/analyse-logs.json", importType, *corpusPath).CombinedOutput() + result, err := exec.Command("/bin/bash", "indexCorpus.sh", logPath+"/analyse-logs.json", importType).CombinedOutput() if err != nil { fmt.Println(color.InRed("Error indexCorpus.sh")) }