Permalink
Browse files

Check for nil PATH

fixes #2006
  • Loading branch information...
1 parent accdd1c commit 17e7f34b69d88f4bd702200a02999c3810772c81 @indirect indirect committed Jul 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler.rb
View
@@ -260,7 +260,7 @@ def mkdir_p(path)
def which(executable)
if File.executable?(executable)
executable
- else
+ elsif ENV['PATH']
path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |p|
File.executable?(File.join(p, executable))
end

0 comments on commit 17e7f34

Please sign in to comment.