From 05094060692616040e5ef6bcd9bb996d4dd46cd0 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 27 Aug 2012 12:36:50 -0400 Subject: Use full paths to mdfind and pkgutil --- Library/Homebrew/macos.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') 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? -- cgit v1.2.3