From 63d8cb1a6ba5745e9510761399d0799bdc9e5384 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 24 Aug 2011 13:37:54 +0100 Subject: [PATCH] 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. --- install_homebrew.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_homebrew.rb b/install_homebrew.rb index f206444f9a..ea2bd9b196 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