aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-17 21:41:22 -0500
committerJack Nagel2014-06-17 21:51:45 -0500
commitd96f15e324d6757f8bb85fbd12cea777e0abc9bf (patch)
tree2b74a0fd5d0b43649aad399ac5730d3fb7aeb155 /Library
parentb2c42fc63c1e35cddfdde0a727fc5a02b798539e (diff)
downloadbrew-d96f15e324d6757f8bb85fbd12cea777e0abc9bf.tar.bz2
Add explicit mkpath to Pathname#write_exec_script
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index dd84f7fe7..17ade5eeb 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -348,6 +348,7 @@ class Pathname
opoo "tried to write exec scripts to #{self} for an empty list of targets"
return
end
+ mkpath
targets.each do |target|
target = Pathname.new(target) # allow pathnames or strings
(self+target.basename()).write <<-EOS.undent