Use bundler/setup for more graceful bundler related failures
parent
7daedac399
commit
f51dd2b6f4
|
@ -23,15 +23,13 @@ unless ENV['BUNDLE_GEMFILE']
|
|||
end
|
||||
|
||||
begin
|
||||
require 'bundler'
|
||||
require 'bundler/setup'
|
||||
rescue LoadError
|
||||
$stderr.puts "[*] Metasploit requires the Bundler gem to be installed"
|
||||
$stderr.puts " $ gem install bundler"
|
||||
exit(0)
|
||||
exit(1)
|
||||
end
|
||||
|
||||
Bundler.setup
|
||||
|
||||
lib_path = root.join('lib').to_path
|
||||
|
||||
unless $LOAD_PATH.include? lib_path
|
||||
|
|
Loading…
Reference in New Issue