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:
Marek Küthe 2022-12-31 22:20:22 +01:00
parent 7e74077d92
commit cb5615aafa
No known key found for this signature in database
GPG Key ID: 7E869146699108C7
1 changed files with 1 additions and 0 deletions

View File

@ -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")