9 lines
207 B
Bash
Executable File
9 lines
207 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
value=${1-}
|
|
policy_file=${BACKEND_URL_POLICY_FILE:-/etc/thothii/backend-url-policy.json}
|
|
|
|
jq -e --arg value "$value" '.relativeBases | index($value) != null' \
|
|
"$policy_file" >/dev/null
|