diff --git a/build.sh b/build.sh index 9b91191..03dd2d5 100755 --- a/build.sh +++ b/build.sh @@ -214,7 +214,7 @@ generate_region() { mkdir -p "./data/osm/$(system_path "${PATH_ARG%//*}")" wget "$( curl -s https://download.geofabrik.de/index-v1-nogeom.json | - jq -r --arg pid "${PATH_ARG##*//}" --arg parent "$(awk -F/ '{print $(NF-1)}' <<< "$PATH_ARG")" ' + jq -r --arg pid "${PATH_ARG##*//}" --arg parent "$(awk -F/ '{print $(NF-1)}' <<< "$(system_path "${PATH_ARG}")")" ' .. | objects | select(.id? == $pid and .parent? == $parent) | .urls.pbf