Error out if HOMEBREW_PREFIX isn't writable

This commit is contained in:
Max Howell 2009-09-16 19:47:40 +01:00
parent 357751633e
commit a7315fce20

View File

@ -65,6 +65,8 @@ begin
puts "You must specify a formula. Search for available formulae with `brew search'."
exit 0
end
raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable?
require 'brewkit'