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.
This commit is contained in:
parent
d053188da4
commit
63d8cb1a6b
@ -108,12 +108,12 @@ if STDIN.tty?
|
|||||||
end
|
end
|
||||||
|
|
||||||
if File.directory? "/usr/local"
|
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
|
# all admin users are in staff
|
||||||
sudo "/usr/bin/chgrp", "staff", *chgrps unless chgrps.empty?
|
sudo "/usr/bin/chgrp", "staff", *chgrps unless chgrps.empty?
|
||||||
else
|
else
|
||||||
sudo "/bin/mkdir /usr/local"
|
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
|
# the group is set to wheel by default for some reason
|
||||||
sudo "/usr/bin/chgrp staff /usr/local"
|
sudo "/usr/bin/chgrp staff /usr/local"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user