We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23b4c27 commit c2a02caCopy full SHA for c2a02ca
1 file changed
docker-entrypoint.sh
@@ -4,6 +4,10 @@ set -euo pipefail
4
args=(--work-dir /output --generate-files --clobber)
5
6
if [ -n "${COUNTRY:-}" ]; then
7
+ if [[ ! "$COUNTRY" =~ ^[A-Z]{2}$ ]]; then
8
+ echo "Error: COUNTRY must be a 2-letter uppercase code (e.g., US, AD)" >&2
9
+ exit 1
10
+ fi
11
args+=(--country "$COUNTRY")
12
fi
13
0 commit comments