From d717358a3278200cf0746943de4d508a4d3dd342 Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Fri, 22 Mar 2019 22:45:41 -0400 Subject: [PATCH] In diagnostics, when directory is not writable, also hint to the user to set permissions. --- Library/Homebrew/diagnostic.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index f7be8eb219..8a14daa4ce 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -350,6 +350,9 @@ module Homebrew You should change the ownership of these directories to your user. 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 end