lib/calabash-android/env.rb in calabash-android-0.4.13 vs lib/calabash-android/env.rb in calabash-android-0.4.14
- old
+ new
@@ -60,13 +60,14 @@
path_if_android_home(read_attribute_from_monodroid_config('android-sdk', 'path'))
end
end
def self.find_executable_on_path(executable)
- path = path_elements.each do |x|
+ path_elements.each do |x|
f = File.join(x, executable)
return "\"#{f}\"" if File.exists?(f)
end
+ nil
end
def self.path_if_jdk(path)
path if path && File.exists?(File.join(path, 'bin', jarsigner_executable))
end
\ No newline at end of file