aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-07-31 00:14:52 -0300
committerMisty De Meo2012-07-31 00:14:52 -0300
commitba10b456ae440bdbafbcfa6793786e8d59bdc7a1 (patch)
tree8198a211e07d41608917c39c6e01e245e33fc5ef /Library
parent7fee581c281889eee24e7cf5a24113bdc9d738d2 (diff)
downloadhomebrew-ba10b456ae440bdbafbcfa6793786e8d59bdc7a1.tar.bz2
mdfind: Check if path is nil as well as empty
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/macos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index da179de31..d44b7627a 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -270,7 +270,7 @@ module MacOS extend self
def mdfind attribute, id
path = `mdfind "#{attribute} == '#{id}'"`.split("\n").first
- Pathname.new(path) unless path.empty?
+ Pathname.new(path) unless path.nil? or path.empty?
end
def pkgutil_info id