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

[PodSourceInstaller] Dont attempt to clean installation if root does not exist

Closes https://github.com/CocoaPods/CocoaPods/issues/2759.
parent 87d9b2fb
......@@ -60,7 +60,7 @@ module Pod
# @return [void]
#
def clean!
clean_installation unless local?
clean_installation unless local?
end
# @return [Hash]
......@@ -135,7 +135,7 @@ module Pod
# @return [void]
#
def clean_installation
clean_paths.each { |path| FileUtils.rm_rf(path) }
clean_paths.each { |path| FileUtils.rm_rf(path) } if root.exist?
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