diff options
| author | Max Howell | 2012-08-27 12:36:50 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-27 12:57:56 -0400 |
| commit | 05094060692616040e5ef6bcd9bb996d4dd46cd0 (patch) | |
| tree | 0fae337ce2dee2d94437e9155b2ca9da4b1e8904 | |
| parent | b8a62d98e114b1af6f1ce7878aa44fa60635870f (diff) | |
| download | brew-05094060692616040e5ef6bcd9bb996d4dd46cd0.tar.bz2 | |
Use full paths to mdfind and pkgutil
| -rw-r--r-- | Library/Homebrew/macos.rb | 4 |
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? |
