We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 227d654 + 814ab23 commit e4ac406Copy full SHA for e4ac406
1 file changed
generate-results.sh
@@ -16,9 +16,13 @@ LANG="" ls -1 */results/*/*.json \
16
| sort \
17
| while read -r file
18
do
19
- [ "${FIRST}" = "0" ] && echo -n ','
20
- jq --compact-output ". += {\"source\": \"${file}\"}" "${file}" || echo "Error in $file" >&2
21
- FIRST=0
+ if entry=$(jq --compact-output ". += {\"source\": \"${file}\"}" "${file}"); then
+ [ "${FIRST}" = "0" ] && echo -n ','
+ printf '%s\n' "$entry"
22
+ FIRST=0
23
+ else
24
+ echo "Error in $file — skipping" >&2
25
+ fi
26
done >> data.generated.js.new
27
echo '];' >> data.generated.js.new
28
0 commit comments