Skip to content

Commit

Permalink
Merge branch 'master' of github.com:codesake/codesake-dawn
Browse files Browse the repository at this point in the history
  • Loading branch information
thesp0nge committed Dec 11, 2013
2 parents 30248ea + f12285c commit 309b6b6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bin/dawn
Expand Up @@ -191,6 +191,14 @@ engine = Codesake::Dawn::GemfileLock.new(target, options[:gemfile_name], options

$logger.die("ruby framework auto detect failed. Please force if rails, sinatra or padrino with -r, -s or -p flags") if engine.nil?

if options[:exit_on_warn]
Kernel.at_exit do
if engine.count_vulnerabilities != 0
Kernel.exit(engine.count_vulnerabilities)
end
end
end

if options[:count_only]
ret = dry_run(target, engine)

Expand All @@ -204,14 +212,6 @@ if options[:output] == "json"
Kernel.exit(0)
end

if options[:exit_on_warn]
Kernel.at_exit do
if engine.count_vulnerabilities != 0
Kernel.exit(engine.count_vulnerabilities)
end
end
end

$logger.die "missing target framework option" if engine.nil?

engine.load_knowledge_base
Expand Down

0 comments on commit 309b6b6

Please sign in to comment.