From 4eca0499fae2f40f3917b0b970a9a5958a738eec Mon Sep 17 00:00:00 2001 From: Mahesh Paolini-Subramanya Date: Thu, 10 Apr 2014 16:37:47 +0200 Subject: [PATCH] Plugin Manager: Properly quote $JAVA in bin/plugin The all new Oracle Java 7 on OSX has a space in its path resulting in bin/plugin failing to work Closes #5765 --- bin/plugin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugin b/bin/plugin index 1cabad2347b..d36b7708b7c 100755 --- a/bin/plugin +++ b/bin/plugin @@ -45,5 +45,5 @@ while [ $# -gt 0 ]; do shift done -exec $JAVA $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $args +exec "$JAVA" $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $args