2017-02-12 21:01:36 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2017-02-12 21:43:19 +01:00
|
|
|
# Seeds sponge, from moreutils
|
|
|
|
|
2017-02-12 21:01:36 +01:00
|
|
|
for dir in lists/*/list.json
|
|
|
|
do
|
2017-02-12 21:43:19 +01:00
|
|
|
cat ${dir} | jq . | sponge ${dir}
|
2017-02-12 21:01:36 +01:00
|
|
|
done
|
2017-02-12 21:43:19 +01:00
|
|
|
|
|
|
|
cat schema.json | jq . | sponge schema.json
|