aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-08-27 12:36:50 -0400
committerMax Howell2012-08-27 12:57:56 -0400
commit05094060692616040e5ef6bcd9bb996d4dd46cd0 (patch)
tree0fae337ce2dee2d94437e9155b2ca9da4b1e8904
parentb8a62d98e114b1af6f1ce7878aa44fa60635870f (diff)
downloadbrew-05094060692616040e5ef6bcd9bb996d4dd46cd0.tar.bz2
Use full paths to mdfind and pkgutil
-rw-r--r--Library/Homebrew/macos.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index 191d7596b..e6b0fbee3 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -216,12 +216,12 @@ module MacOS extend self
end
def mdfind attribute, id
- path = `mdfind "#{attribute} == '#{id}'"`.split("\n").first
+ path = `/usr/bin/mdfind "#{attribute} == '#{id}'"`.split("\n").first
Pathname.new(path) unless path.nil? or path.empty?
end
def pkgutil_info id
- `pkgutil --pkg-info #{id} 2>/dev/null`.strip
+ `/usr/sbin/pkgutil --pkg-info "#{id}" 2>/dev/null`.strip
end
def bottles_supported?