From 6a6fad2e77409a45e78fcce19ef732b22c260c7f Mon Sep 17 00:00:00 2001 From: konggdev Date: Fri, 26 Jun 2026 00:26:56 +0200 Subject: [PATCH] Fix >1 depth child fetching --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index b3365cb..b3b6119 100755 --- a/build.sh +++ b/build.sh @@ -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 \ No newline at end of file +fi