17 lines
216 B
Text
17 lines
216 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
## consts
|
||
|
|
||
|
dir_base="."
|
||
|
|
||
|
|
||
|
## exec
|
||
|
|
||
|
flaws=0
|
||
|
for path in $(find ${dir_base} -name "*.json")
|
||
|
do
|
||
|
echo "-- ${path}"
|
||
|
python3 -m json.tool ${path} > /dev/null || ((flaws+=1))
|
||
|
done
|
||
|
test ${flaws} -eq 0
|