From ea128b5dcc4615d2d03e846a09c6269f9b1ed4c6 Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Thu, 1 Dec 2005 18:49:27 +0300 Subject: [PATCH] Usages of $IDEA_BIN_HOME quoted to support paths with spaces inside --- bin/idea.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/idea.sh b/bin/idea.sh index 0dfcd9d8f216..0de9fbdf039a 100644 --- a/bin/idea.sh +++ b/bin/idea.sh @@ -36,7 +36,7 @@ if [ -z "$IDEA_MAIN_CLASS_NAME" ]; then fi REQUIRED_JVM_ARGS="-Xbootclasspath/p:../lib/boot.jar: $IDEA_PROPERTIES_PROPERTY" -JVM_ARGS=`cat $IDEA_HOME/bin/idea.vmoptions | tr '\n' ' '` +JVM_ARGS=`cat "$IDEA_HOME/bin/idea.vmoptions | tr '\n' ' '`" JVM_ARGS="$JVM_ARGS $REQUIRED_JVM_ARGS" CLASSPATH=../lib/idea.jar @@ -52,5 +52,5 @@ export CLASSPATH LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH export LD_LIBRARY_PATH -cd $IDEA_BIN_HOME +cd "$IDEA_BIN_HOME" exec $IDEA_JDK/bin/java $JVM_ARGS $IDEA_MAIN_CLASS_NAME $*