Allow whitespaces in installation folders

This commit is contained in:
Oleg Shpynov
2010-01-26 15:42:48 +03:00
parent 28c7dc41dc
commit 28bed3f027
+4 -4
View File
@@ -23,12 +23,12 @@ fi
SCRIPT_LOCATION=$0
# Step through symlinks to find where the script really is
while [ -L $SCRIPT_LOCATION ]; do
SCRIPT_LOCATION=`readlink -e $SCRIPT_LOCATION`
while [ -L "$SCRIPT_LOCATION" ]; do
SCRIPT_LOCATION=`readlink -e "$SCRIPT_LOCATION"`
done
IDEA_HOME=`dirname $SCRIPT_LOCATION`/..
IDEA_BIN_HOME=`dirname $SCRIPT_LOCATION`
IDEA_HOME=`dirname "$SCRIPT_LOCATION"`/..
IDEA_BIN_HOME=`dirname "$SCRIPT_LOCATION"`
export JAVA_HOME
export IDEA_HOME