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"