Fix work idea home validation on mac

GitOrigin-RevId: 1712926286a01e571a63b5ccf796082c4e628ade
This commit is contained in:
Alexander Zolotov
2019-10-16 17:37:07 +00:00
committed by intellij-monorepo-bot
parent f45121d83d
commit cc0a5c6e7e
@@ -105,7 +105,8 @@ open class UpdateIdeFromSourcesAction
if (!homeDir.exists()) return null
if (homeDir.isFile) return "it is not a directory"
for (name in listOf("bin", "build.txt")) {
val buildTxt = if (SystemInfo.isMac) "Resources/build.txt" else "build.txt"
for (name in listOf("bin", buildTxt)) {
if (!File(homeDir, name).exists()) {
return "'$name' doesn't exist"
}