18F / concourse-compliance-testing

Concourse CI assets for Compliance Toolkit
https://compliance-viewer.18f.gov/
Other
17 stars 7 forks source link

Don't generate output if there aren't any links. #37

Closed DavidEBest closed 8 years ago

DavidEBest commented 8 years ago

Made the copy to results conditional - if jq isn't fed any files, then it outputs a [], which means projects without links still get a results file. This removes that case. Also, cleans up the quoting on filenames to work better with multiple files.

ctro commented 8 years ago

Makes sense to me, and I like using a simple if instead of trying to jigger more functionality into that already-pretty-dense jq line.