brew doctor: hard-code full path to mount command

This commit is contained in:
Adam Vandenberg 2011-04-29 09:15:39 -07:00
parent 950440dd06
commit d7b50a5820

View File

@ -1,7 +1,7 @@
class Volumes class Volumes
def initialize def initialize
@volumes = [] @volumes = []
raw_mounts=`mount` raw_mounts=`/sbin/mount`
raw_mounts.split("\n").each do |line| raw_mounts.split("\n").each do |line|
case line case line
when /^(.+) on (\S+) \(/ when /^(.+) on (\S+) \(/