[platform] fixes IDE launch from a bin/ directory on Unix (IDEA-161265)

This commit is contained in:
Roman Shevchenko
2016-09-15 14:32:04 +03:00
parent 7dd0bdef44
commit 7eb97d5d86
+5 -1
View File
@@ -51,7 +51,11 @@ if [ -x "$READLINK" ]; then
fi
IDE_BIN_HOME=`dirname "$SCRIPT_LOCATION"`
IDE_HOME=`dirname "$IDE_BIN_HOME"`
if [ "$IDE_BIN_HOME" = "." ]; then
IDE_HOME=".."
else
IDE_HOME=`dirname "$IDE_BIN_HOME"`
fi
# ---------------------------------------------------------------------
# Locate a JDK installation directory which will be used to run the IDE.