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