mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
dont generate pretty json by default
we have jq for that!
This commit is contained in:
parent
424d97c0b6
commit
4676b5eedd
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class Inspec::InspecCLI < Inspec::BaseCLI # rubocop:disable Metrics/ClassLength
|
|||
profile = Inspec::Profile.for_target(target, o)
|
||||
dst = o[:output].to_s
|
||||
if dst.empty?
|
||||
puts JSON.pretty_generate(profile.info)
|
||||
puts JSON.dump(profile.info)
|
||||
else
|
||||
if File.exist? dst
|
||||
puts "----> updating #{dst}"
|
||||
|
|
Loading…
Reference in a new issue