Add explicit mkpath to Pathname#write_exec_script

This commit is contained in:
Jack Nagel 2014-06-17 21:41:22 -05:00
parent b2c42fc63c
commit d96f15e324

View File

@ -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