diff options
| author | Mike McQuaid | 2014-01-25 15:11:38 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-12 17:05:14 +0000 |
| commit | 0f09260c76797048be806b88e88135d6448d5afb (patch) | |
| tree | 89e070da54e475fe3bb076b60e5a320e7a812c9b | |
| parent | 32a3498abebd3624323511152076da69c3b29ab8 (diff) | |
| download | homebrew-0f09260c76797048be806b88e88135d6448d5afb.tar.bz2 | |
install: improve handling of shared groups.
Closes #26184.
| -rwxr-xr-x | install | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3,6 +3,7 @@ # untar https://github.com/Homebrew/homebrew/tarball/master anywhere you like or # change the value of HOMEBREW_PREFIX. HOMEBREW_PREFIX = '/usr/local' +HOMEBREW_CACHE = '/Library/Caches/Homebrew' module Tty extend self def blue; bold 34; end @@ -117,7 +118,7 @@ abort <<-EOABORT if File.directory? HOMEBREW_PREFIX and not File.executable? HOM The Homebrew prefix, #{HOMEBREW_PREFIX}, exists but is not searchable. If this is not intentional, please restore the default permissions and try running the installer again: - sudo chmod 755 #{HOMEBREW_PREFIX} + sudo chmod 775 #{HOMEBREW_PREFIX} EOABORT ohai "This script will install:" @@ -154,6 +155,9 @@ else sudo "/usr/bin/chgrp admin #{HOMEBREW_PREFIX}" end +sudo "/bin/mkdir #{HOMEBREW_CACHE}" unless File.directory? HOMEBREW_CACHE +sudo "/bin/chmod g+rwx #{HOMEBREW_CACHE}" + if macos_version > "10.8" unless File.exist? "/Library/Developer/CommandLineTools/usr/bin/clang" ohai "Installing the Command Line Tools (expect a GUI popup):" |
