aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-08-27 12:36:50 -0400
committerMax Howell2012-08-27 12:57:56 -0400
commitf13ff169bac1d1994653d26ebb16280963d58c8c (patch)
treeab5aa1f01caac0f4750ecf86e4c72d2464aabaa4
parent99696cb9ca2ca53ab82958297862aef82019f013 (diff)
downloadhomebrew-f13ff169bac1d1994653d26ebb16280963d58c8c.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?