aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2012-12-21 17:12:00 -0600
committerJack Nagel2012-12-21 17:12:00 -0600
commit73a206a316dcd081a226f341f87673c864c256fa (patch)
tree53dc12a5c7177edb4a5cd3531518a376cd8b8879 /Library/Homebrew/cmd
parenta64e9e542f04b845f12f18f644d6d33a170e3ada (diff)
downloadbrew-73a206a316dcd081a226f341f87673c864c256fa.tar.bz2
doctor: avoid pointless creation of pathname object
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 934de6eaf..8d22b79ad 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -310,7 +310,7 @@ end
def check_access_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.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the