Fix >1 depth child fetching
This commit is contained in:
@@ -231,7 +231,7 @@ generate_region() {
|
|||||||
|
|
||||||
fetch_path() {
|
fetch_path() {
|
||||||
local PATH_ARG="$1"
|
local PATH_ARG="$1"
|
||||||
curl -s https://download.geofabrik.de/index-v1-nogeom.json | jq -r --arg pid "$PATH_ARG" '
|
curl -s https://download.geofabrik.de/index-v1-nogeom.json | jq -r --arg pid "${PATH_ARG##*/}" '
|
||||||
.features[]
|
.features[]
|
||||||
| select(
|
| select(
|
||||||
if ($pid == "" or $pid == "planet") then
|
if ($pid == "" or $pid == "planet") then
|
||||||
|
|||||||
Reference in New Issue
Block a user