Skip to content

Commit 46a8d7c

Browse files
committed
Skip index if exists
1 parent d4280ca commit 46a8d7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ build_index() {
2525
echo "Error: no PBF files found in $DATA_DIR/pbf/"
2626
exit 1
2727
fi
28+
if [ -f "$DATA_DIR/index/geo_cells.bin" ]; then
29+
echo "Index already exists, skipping build"
30+
return
31+
fi
2832
mkdir -p "$DATA_DIR/index"
2933
level_args=""
3034
[ -n "$STREET_LEVEL" ] && level_args="$level_args --street-level $STREET_LEVEL"

0 commit comments

Comments
 (0)