add missing `HOMEBREW_CACHE_CASKS.mkpath`

If `mkpath` must be done for the parent dir, then it certainly
must also be done for the child dir.
This commit is contained in:
Roland Walker 2014-02-05 09:57:35 -05:00
parent cb6bb258cc
commit 379f3e7c88
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class Cask
def self.init
odebug 'Creating directories'
HOMEBREW_CACHE.mkpath unless HOMEBREW_CACHE.exist?
HOMEBREW_CACHE_CASKS.mkpath unless HOMEBREW_CACHE_CASKS.exist?
unless caskroom.exist?
ohai "We need to make Caskroom for the first time at #{caskroom}"
ohai "We'll set permissions properly so we won't need sudo in the future"