Skip to content

Commit

Permalink
Fixed the appending of lib/ to $LOAD_PATH.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Feb 12, 2013
1 parent a27564c commit eaf9d79
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions bin/bundle-audit
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,8 @@

require 'rubygems'

root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root,'.git'))
Dir.chdir(root) do
begin
require 'bundler/setup'
rescue LoadError => e
warn e.message
warn "Run `gem install bundler` to install Bundler"
exit -1
end
end
end
lib_dir = File.expand_path(File.join(File.dirname(__FILE__),'..','lib'))
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)

require 'bundler/audit/cli'

Expand Down

0 comments on commit eaf9d79

Please sign in to comment.