From c501340971b2e434a9299f8ca525d94d5ad33023 Mon Sep 17 00:00:00 2001 From: fly Date: Thu, 27 Aug 2020 11:15:31 +0000 Subject: [PATCH] Use correct pbf path Signed-off-by: fly --- chunk-import.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chunk-import.sh b/chunk-import.sh index 92070a4..601170e 100755 --- a/chunk-import.sh +++ b/chunk-import.sh @@ -55,7 +55,7 @@ case $key in *) if [ $first == "1" ]; then pbf_path="$1" - shift # past pbf-path + shift # past pbf_path first=0 else echo "Unknown option $key" @@ -70,4 +70,4 @@ if [ -z "$pbf_path" ]; then exit 1 fi -ls "$pbf_path"/*.osm.pbf | sed -e "s/.osm.pbf//" -e "s:^.*/::" | parallel -j$num_jobs --eta "$root_path/create-db $prefix{} && $root_path/read-pbf $prefix{} {}.osm.pbf" +ls "$pbf_path"/*.osm.pbf | sed -e "s/.osm.pbf//" -e "s:^.*/::" | parallel -j$num_jobs --eta "$root_path/create-db $prefix{} && $root_path/read-pbf $prefix{} $pbf_path/{}.osm.pbf"