aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-10-11 10:13:16 -0700
committerAdam Vandenberg2011-10-11 10:13:19 -0700
commitc4901c409a3f89186a6c452d5b53ef4e1a510a01 (patch)
treee7b806b63ba4951ad62de5b3efc17dddaa9b1a31 /Library
parent16f6c059065200dba403d5d899f544d34829b944 (diff)
downloadhomebrew-c4901c409a3f89186a6c452d5b53ef4e1a510a01.tar.bz2
Ensure cache folder exists
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-pull.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb
index 61467ef66..de54fd529 100755
--- a/Library/Contributions/examples/brew-pull.rb
+++ b/Library/Contributions/examples/brew-pull.rb
@@ -29,6 +29,7 @@ HOMEBREW_REPOSITORY.cd do
end
# The cache directory seems like a good place to put patches.
+ HOMEBREW_CACHE.mkpath
patchpath = (HOMEBREW_CACHE+File.basename(url))
curl url, '-o', patchpath