Commit c78e6e2a authored by anonym's avatar anonym
Browse files

Create TMPDIR with mkdir_p.

So any missing parent directories are created too.
parent 9a265941
...@@ -17,7 +17,7 @@ AfterConfiguration do |config| ...@@ -17,7 +17,7 @@ AfterConfiguration do |config|
FileUtils.chmod(0755, $config["TMPDIR"]) FileUtils.chmod(0755, $config["TMPDIR"])
else else
begin begin
Dir.mkdir($config["TMPDIR"]) FileUtils.mkdir_p($config["TMPDIR"])
rescue Errno::EACCES => e rescue Errno::EACCES => e
raise "Cannot create temporary directory: #{e.to_s}" raise "Cannot create temporary directory: #{e.to_s}"
end end
Supports Markdown
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