Fix >1 depth child fetching

This commit is contained in:
2026-06-26 00:26:56 +02:00
parent bd950a1650
commit 6a6fad2e77
+2 -2
View File
@@ -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
@@ -298,4 +298,4 @@ if [ "$MODE" == "single" ]; then
exit 0 exit 0
elif [[ "$MODE" == "recursive" ]]; then elif [[ "$MODE" == "recursive" ]]; then
all_path "$PATH_ARG" all_path "$PATH_ARG"
fi fi