mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-09-07 09:23:50 +08:00
[dn42_schema_local.py]: make the commit to check against configurable
This commit is contained in:
parent
5e3a7e30da
commit
bba5dfd139
2 changed files with 47 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue