aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-01-25 15:11:38 +0000
committerMike McQuaid2014-03-12 17:05:14 +0000
commit0f09260c76797048be806b88e88135d6448d5afb (patch)
tree89e070da54e475fe3bb076b60e5a320e7a812c9b
parent32a3498abebd3624323511152076da69c3b29ab8 (diff)
downloadhomebrew-0f09260c76797048be806b88e88135d6448d5afb.tar.bz2
install: improve handling of shared groups.
Closes #26184.
-rwxr-xr-xinstall6
1 files changed, 5 insertions, 1 deletions
diff --git a/install b/install
index bc862d995..dae9783b5 100755
--- a/install
+++ b/install
@@ -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):"