mkpath prefix before install in brew command

This commit is contained in:
Max Howell 2009-06-04 19:39:05 +01:00
parent cc50131728
commit ddfd15bcf2
2 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class Formula
@version = $1
end
end
private
def maybe_mkpath path
path.mkpath unless path.exist?

View File

@ -210,6 +210,7 @@ begin
beginning = Time.now
o=__obj(name)
raise "#{o.prefix} already exists!" if o.prefix.exist?
o.prefix.mkpath
o.brew { o.install }
ohai 'Finishing up'
o.clean