Use correct pbf path

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2020-08-27 11:15:31 +00:00
parent 6ff4db3abd
commit c501340971

View file

@ -55,7 +55,7 @@ case $key in
*) *)
if [ $first == "1" ]; then if [ $first == "1" ]; then
pbf_path="$1" pbf_path="$1"
shift # past pbf-path shift # past pbf_path
first=0 first=0
else else
echo "Unknown option $key" echo "Unknown option $key"
@ -70,4 +70,4 @@ if [ -z "$pbf_path" ]; then
exit 1 exit 1
fi 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"