Fix >1 depth child fetching
This commit is contained in:
@@ -231,7 +231,7 @@ generate_region() {
|
||||
|
||||
fetch_path() {
|
||||
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[]
|
||||
| select(
|
||||
if ($pid == "" or $pid == "planet") then
|
||||
@@ -298,4 +298,4 @@ if [ "$MODE" == "single" ]; then
|
||||
exit 0
|
||||
elif [[ "$MODE" == "recursive" ]]; then
|
||||
all_path "$PATH_ARG"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user