lib/juicer/binary.rb in juicer-1.0.13 vs lib/juicer/binary.rb in juicer-1.0.14

- old
+ new

@@ -127,10 +127,10 @@ # the specified paths - ie the first path where the pattern matches # something. # def locate(bin_glob, env = nil) path << ENV[env] if env && ENV.key?(env) && File.exist?(ENV[env]) - + (path << Dir.pwd).each do |path| files = Dir.glob(File.expand_path(File.join(path, bin_glob))) return files unless files.empty? end