Skip to content
Snippets Groups Projects
Commit 73a206a3 authored by Jack Nagel's avatar Jack Nagel
Browse files

doctor: avoid pointless creation of pathname object

parent a64e9e54
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment