Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/bundler/audit/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class CLI < ::Thor
method_option :verbose, :type => :boolean, :aliases => '-v'
method_option :ignore, :type => :array, :aliases => '-i'
method_option :update, :type => :boolean, :aliases => '-u'
method_option :no_exit_on_warn, :type => :boolean

def check
update if options[:update]
Expand All @@ -54,6 +55,7 @@ def check

if vulnerable
say "Vulnerabilities found!", :red
exit 0 if options.no_exit_on_warn?
exit 1
else
say("No vulnerabilities found", :green) unless options.quiet?
Expand Down