summaryrefslogtreecommitdiff
path: root/tools/validate-all-json.sh
blob: ce85fadd6952cbeb6154f67d575c0d8c58a56a9f (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

TOPLEVEL=$(git rev-parse --show-toplevel)

cd $TOPLEVEL

git ls-files -z '*.json' |
    xargs -0 python tools/validate-json.py || exit 1