chmod Library and libexec too

This commit is contained in:
Max Howell 2010-06-16 08:53:46 +01:00
parent 13e73a2c55
commit f939a2c8b2

View File

@ -90,7 +90,7 @@ puts "/usr/local/bin/brew"
puts "/usr/local/Library/Formula/..." puts "/usr/local/Library/Formula/..."
puts "/usr/local/Library/Homebrew/..." puts "/usr/local/Library/Homebrew/..."
chmods = %w(bin etc include lib sbin share var . share/locale share/man share/info share/doc share/aclocal). chmods = %w(bin etc include lib libexec Library sbin share var . share/locale share/man share/info share/doc share/aclocal).
map{ |d| "/usr/local/#{d}" }. map{ |d| "/usr/local/#{d}" }.
select{ |d| File.directory? d and not File.writable? d } select{ |d| File.directory? d and not File.writable? d }
chgrps = chmods.reject{ |d| File.stat(d).grpowned? } chgrps = chmods.reject{ |d| File.stat(d).grpowned? }