Commit fc19c0e9 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Cache] Ensure we handle when the tmpdir cant be created

Closes #3587.
parent 69aba4c1
......@@ -127,7 +127,7 @@ module Pod
tmpdir = Pathname(Dir.mktmpdir)
blk.call(tmpdir)
ensure
FileUtils.remove_entry(tmpdir) if tmpdir.exist?
FileUtils.remove_entry(tmpdir) if tmpdir && tmpdir.exist?
end
# Copies the `source` directory to `destination`, cleaning the directory
......
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