mirror of https://codeberg.org/CRXN/entitydb.git
add exclude option for build_maxlen_filter.sh for schema.json
Signed-off-by: Marek Küthe <m.k@mk16.de>
This commit is contained in:
parent
7e74077d92
commit
cb5615aafa
|
@ -6,6 +6,7 @@ if ! jq --version &> /dev/null; then
|
|||
fi
|
||||
|
||||
for file in *.json; do
|
||||
[[ $file =~ ^(schema.json)$ ]] && continue
|
||||
for prefix in $(jq -r ".route | keys[]" "$file"); do
|
||||
prefixlen=$(echo "$prefix" | cut -d "/" -f2)
|
||||
maxlen=$(jq -r ".route.\"$prefix\".\"max-len\"" "$file")
|
||||
|
|
Loading…
Reference in New Issue