aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2011-08-24 13:37:54 +0100
committerMax Howell2012-03-09 12:10:50 +0000
commit63d8cb1a6ba5745e9510761399d0799bdc9e5384 (patch)
tree141567414cfae2b2263b2834270bdd8838cbc316
parentd053188da4fa45fbd7864f58f0fa5292fdf6531d (diff)
downloadbrew-63d8cb1a6ba5745e9510761399d0799bdc9e5384.tar.bz2
We need the executable permission to create files in directories
Fixes Homebrew/homebrew#6512. I also set +r as a bunch of Homebrew will fail without that.
-rw-r--r--install_homebrew.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/install_homebrew.rb b/install_homebrew.rb
index f206444f9..ea2bd9b19 100644
--- a/install_homebrew.rb
+++ b/install_homebrew.rb
@@ -108,12 +108,12 @@ if STDIN.tty?
end
if File.directory? "/usr/local"
- sudo "/bin/chmod", "g+w", *chmods unless chmods.empty?
+ sudo "/bin/chmod", "g+rwx", *chmods unless chmods.empty?
# all admin users are in staff
sudo "/usr/bin/chgrp", "staff", *chgrps unless chgrps.empty?
else
sudo "/bin/mkdir /usr/local"
- sudo "/bin/chmod g+w /usr/local"
+ sudo "/bin/chmod g+rwx /usr/local"
# the group is set to wheel by default for some reason
sudo "/usr/bin/chgrp staff /usr/local"
end