Merge pull request #5911 from blankenberg/user-dir-write-permission

In diagnostics, when directory is not writable, also hint to set permission.
This commit is contained in:
Mike McQuaid 2019-03-23 21:23:50 +00:00 committed by GitHub
commit 4cb88b7e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,6 +350,9 @@ module Homebrew
You should change the ownership of these directories to your user. You should change the ownership of these directories to your user.
sudo chown -R $(whoami) #{not_writable_dirs.join(" ")} sudo chown -R $(whoami) #{not_writable_dirs.join(" ")}
And make sure that your user has write permission.
chmod u+w #{not_writable_dirs.join(" ")}
EOS EOS
end end