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
commit017d8690d381a08d015cda3139471ff1093b859b (patch)
tree59436a92b33547464b267578f152626fde9da6a0 /Library
parentd73df34bc6ee5cbd989d11c6a927e2ca083b951c (diff)
downloadbrew-017d8690d381a08d015cda3139471ff1093b859b.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