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:
parent
9856a6c3bb
commit
f9a67019d6
@ -65,6 +65,7 @@ module Cask
|
|||||||
|
|
||||||
if path.exist? && !path.writable?
|
if path.exist? && !path.writable?
|
||||||
add_error "The staging path #{user_tilde(path.to_s)} is not writable by the current user."
|
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
|
end
|
||||||
|
|
||||||
puts user_tilde(path.to_s)
|
puts user_tilde(path.to_s)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user