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 ...@@ -60,7 +60,7 @@ module Pod
# @return [void] # @return [void]
# #
def clean! def clean!
clean_installation unless local? clean_installation unless local?
end end
# @return [Hash] # @return [Hash]
...@@ -135,7 +135,7 @@ module Pod ...@@ -135,7 +135,7 @@ module Pod
# @return [void] # @return [void]
# #
def clean_installation def clean_installation
clean_paths.each { |path| FileUtils.rm_rf(path) } clean_paths.each { |path| FileUtils.rm_rf(path) } if root.exist?
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