From 3966c5914b21cc93fa8bb6223ec2eefc1b6ff97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonia=20P=C3=A9rez-Cerezo?= Date: Wed, 12 Mar 2025 21:19:46 +0100 Subject: [PATCH] Add usage info to mapbuilder script --- scripts/mapbuilder.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/mapbuilder.sh b/scripts/mapbuilder.sh index c653e6c..ae8f8e1 100755 --- a/scripts/mapbuilder.sh +++ b/scripts/mapbuilder.sh @@ -1,6 +1,9 @@ #!/bin/bash - +[ -n "$1" -a -n "$2" ] || { + echo "Usage: $0 INPUT_DIRECTORY OUTPUT_DIRECTORY" + exit 1 +} temp=$(mktemp -d) zoom=$(jq '.maxZoom // 10' "$1/layers.json")