[dn42_schema_local.py]: make the commit to check against configurable

This commit is contained in:
lare 2024-06-05 20:06:01 +02:00
parent 5e3a7e30da
commit bba5dfd139
No known key found for this signature in database
2 changed files with 47 additions and 30 deletions

View file

@ -13,6 +13,6 @@ cd "$BASE" || exit 1
git diff --name-only "$1" | while IFS='/' read -ra LINE; do
if [[ "${LINE[0]}" = "data" && -n "${LINE[2]}" ]]; then
utils/schema-check/dn42_schema_local.py -v policy "${LINE[1]}" "${LINE[2]}" "$2"
utils/schema-check/dn42_schema_local.py -v policy "${LINE[1]}" "${LINE[2]}" "$2" "$1"
fi
done