misp-objects/jq_all_the_things.sh

17 lines
357 B
Bash
Raw Normal View History

2017-02-13 11:15:51 +01:00
#!/bin/bash
set -e
set -x
# Seeds sponge, from moreutils
2017-02-13 11:18:42 +01:00
for dir in objects/*/definition.json
2017-02-13 11:15:51 +01:00
do
cat ${dir} | jq . | sponge ${dir}
done
2017-08-11 12:19:52 +02:00
cat relationships/definition.json | jq . | sponge relationships/definition.json
cat schema_objects.json | jq . | sponge schema_objects.json
cat schema_relationships.json | jq . | sponge schema_relationships.json