Skip to content

Commit 040c343

Browse files
author
MartinMikita
committed
Moved copying sample file to be the first file.
1 parent 17b7161 commit 040c343

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: sphinx-reindex.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
REINDEX=0
44

5+
# Copy sample file if missing
6+
if [ ! -f data/sample/search.tsv ]; then
7+
mkdir -p /data/sample/
8+
cp /sample.tsv data/sample/search.tsv
9+
fi
10+
511
# Download search.tsv file from domains
612
if [ ! "$DOMAINS" = "" ]; then
713
list_domain=$(echo $DOMAINS | tr "," "\n")
@@ -16,12 +22,6 @@ if [ ! "$DOMAINS" = "" ]; then
1622
done
1723
fi
1824

19-
# Copy sample file if missing
20-
if [ ! -f data/sample/search.tsv ]; then
21-
mkdir -p /data/sample/
22-
cp /sample.tsv data/sample/search.tsv
23-
fi
24-
2525
# Reindex and rotate files
2626
if [ $REINDEX -eq 1 ]; then
2727
mkdir -p /data/index/

0 commit comments

Comments
 (0)