From 7eb97d5d8676370a3ce51dc51f9bd2124e0bbfdc Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 15 Sep 2016 14:31:31 +0300 Subject: [PATCH] [platform] fixes IDE launch from a bin/ directory on Unix (IDEA-161265) --- bin/scripts/unix/idea.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/scripts/unix/idea.sh b/bin/scripts/unix/idea.sh index 2bfd582f3f62..786a99486585 100755 --- a/bin/scripts/unix/idea.sh +++ b/bin/scripts/unix/idea.sh @@ -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.