doctor: avoid pointless creation of pathname object
This commit is contained in:
parent
a64e9e542f
commit
73a206a316
@ -310,7 +310,7 @@ end
|
|||||||
def check_access_usr_local
|
def check_access_usr_local
|
||||||
return unless HOMEBREW_PREFIX.to_s == '/usr/local'
|
return unless HOMEBREW_PREFIX.to_s == '/usr/local'
|
||||||
|
|
||||||
unless Pathname('/usr/local').writable_real? then <<-EOS.undent
|
unless File.writable_real?("/usr/local") then <<-EOS.undent
|
||||||
The /usr/local directory is not writable.
|
The /usr/local directory is not writable.
|
||||||
Even if this directory was writable when you installed Homebrew, other
|
Even if this directory was writable when you installed Homebrew, other
|
||||||
software may change permissions on this directory. Some versions of the
|
software may change permissions on this directory. Some versions of the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user