Improve error message on cask doctor

Add fix command on brew cask doctor in case staging directory is not writable.
This commit is contained in:
Carlos Eduardo 2019-04-09 13:08:06 -03:00 committed by GitHub
parent 9856a6c3bb
commit f9a67019d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ module Cask
if path.exist? && !path.writable?
add_error "The staging path #{user_tilde(path.to_s)} is not writable by the current user."
add_error "To fix, run \'sudo chown -R ${USER}:staff #{user_tilde(path.to_s)}'"
end
puts user_tilde(path.to_s)