This commit is contained in:
Laurent Sansonetti
2014-09-17 02:55:06 +09:00
parent 2eb0f6bd0c
commit 899ec26327

View File

@@ -165,7 +165,7 @@ module Motion; class Command
FileUtils.rm_rf Motion::Project::Builder.common_build_dir
ensure
if dest_installation_dir && File.exist?('/Library/RubyMotion.old')
if (@wanted_software_version or @prerelease_mode) and File.exist?('/Library/RubyMotion.old')
FileUtils.mv '/Library/RubyMotion.old', '/Library/RubyMotion'
end
end