diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index c87c16a118..ee6048ca8c 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -349,12 +349,13 @@ EOS fi # check permissions - if [[ "$HOMEBREW_PREFIX" = "/usr/local" && ! -w /usr/local ]] + if [[ -e "$HOMEBREW_CELLAR" && ! -w "$HOMEBREW_CELLAR" ]] then odie < * Read through the [Common Issues](Common-Issues.md). * If you’re installing something Java-related, maybe you need to install Java (`brew cask install java`)? * Check that **Command Line Tools for Xcode (CLT)** and/or **Xcode** are up to date. -* If things fail with permissions errors, check the permissions in `/usr/local`. If you’re unsure what to do, you can `sudo chown -R $(whoami) /usr/local`. +* If things fail with permissions errors, check the permissions of `/usr/local`'s subdirectories. If you’re unsure what to do, you can `cd /usr/local && sudo chown -R $(whoami) bin etc include lib sbin share var Frameworks`. ## Check to see if the issue has been reported * Check the [issue tracker](https://github.com/Homebrew/homebrew-core/issues) to see if someone else has already reported the same issue.