mirror of https://codeberg.org/CRXN/entitydb.git
Compare commits
2 Commits
a707ed31be
...
1c0af810f3
Author | SHA1 | Date |
---|---|---|
Marek Küthe | 1c0af810f3 | |
Marek Küthe | 76d3b6eaa2 |
12
test.sh
12
test.sh
|
@ -8,16 +8,16 @@ if ! jq --version &> /dev/null; then
|
|||
fi
|
||||
|
||||
ret=0
|
||||
while read -r l
|
||||
do
|
||||
if ! jq --exit-status '.route | .[] | .description' < "$l" > /dev/null 2>&1
|
||||
|
||||
for file in *.json; do
|
||||
if ! jq --exit-status '.route | .[] | .device' < "$file" > /dev/null 2>&1
|
||||
then
|
||||
echo "$l is invalid." >&2
|
||||
echo "$file is invalid." >&2
|
||||
ret=1
|
||||
else
|
||||
#echo "$l is valid."
|
||||
#echo "$file is valid."
|
||||
:
|
||||
fi
|
||||
done < <(find "$PWD" -name '*.json' -type f)
|
||||
done
|
||||
|
||||
exit $ret
|
||||
|
|
Loading…
Reference in New Issue