IDEA-CR-11249: IDEA-156503 Can't update PhpStorm was updated

This commit is contained in:
Vladimir.Orlov
2016-06-03 19:05:28 +03:00
parent 0f5845a51b
commit 2727e1c793
@@ -78,7 +78,7 @@ public class Restarter {
if (beforeRestart.length == 0) return;
File restartDir = new File(getRestarterDir());
String systemPath = (System.getProperty("user.home") + "/." + System.getProperty("idea.paths.selector") + "/system/restart").replace("//", "/");
String systemPath = new File(System.getProperty("user.home") + "/." + System.getProperty("idea.paths.selector") + "/system/restart").getPath();
if (! systemPath.equals(restartDir.getPath())){
throw new IOException("idea.system.path was changed. Restart is not supported.");
}