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
|
2020-04-03 13:37:17 +02:00
|
|
|
cat ${dir} | jq -S . | sponge ${dir}
|
2017-02-12 21:01:36 +01:00
|
|
|
done
|
2017-02-12 21:43:19 +01:00
|
|
|
|
2020-04-03 13:37:17 +02:00
|
|
|
cat schema.json | jq -S . | sponge schema.json
|