Commit a41a4d38 authored by Marius Rackwitz's avatar Marius Rackwitz

Ensure the output dir exists in Generator::Header#save_as

parent 85a52521
...@@ -64,6 +64,7 @@ module Pod ...@@ -64,6 +64,7 @@ module Pod
# @return [void] # @return [void]
# #
def save_as(path) def save_as(path)
FileUtils.mkdir_p(path + '..')
path.open('w') { |header| header.write(generate) } path.open('w') { |header| header.write(generate) }
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment