2017-02-13 17:32:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# Seeds sponge, from moreutils
|
|
|
|
|
2017-02-13 17:52:54 +00:00
|
|
|
for dir in clusters/*.json
|
2017-02-13 17:32:53 +00:00
|
|
|
do
|
|
|
|
cat ${dir} | jq . | sponge ${dir}
|
|
|
|
done
|
|
|
|
|
|
|
|
cat schema.json | jq . | sponge schema.json
|