misp-warninglists/jq_all_the_things.sh

14 lines
186 B
Bash
Raw Permalink Normal View History

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