pre-commit.in 198 Bytes
Newer Older
1 2
#!/bin/sh

3 4 5 6 7
dir=`git rev-parse --show-toplevel`
if [ -z $dir ]; then
    exit 1
fi

8
echo -n Checking JSON parses..
9
$dir/util/json_lint.sh
10 11 12 13 14
if [ $? -eq 0 ]; then
    echo . it does!
else
    exit 1
fi