blob: 16a5cebcd1dae5598025349aebb7ddd4b525aeef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
set -euf
DB="assets.json"
TMP=`mktemp`
echo "** checking $DB for sanity"
cat $DB | python -m json.tool > $TMP
RET=$?
if [ "$RET" = "0" ];
then
echo "** Database sanity verified"
git add $DB
#mv $TMP $DB
else
echo "!! Database insane"
cat $TMP
fi
rm $TMP
exit $RET
|