Quote path to java binary
This commit quotes the variable that contains the path to the java binary. Without these quotes, when the arguments to eval are evaluated the existing quotes will be removed leading to unquoted use of the path to the java binary. If this path contains spaces, evaluation will fail.
This commit is contained in:
parent
7d4ed5b19e
commit
cea3c3c92f
|
@ -110,4 +110,4 @@ fi
|
|||
HOSTNAME=`hostname | cut -d. -f1`
|
||||
export HOSTNAME
|
||||
|
||||
eval "$JAVA" -client -Delasticsearch -Des.path.home="\"$ES_HOME\"" $properties -cp "\"$ES_HOME/lib/*\"" org.elasticsearch.plugins.PluginCli $args
|
||||
eval "\"$JAVA\"" -client -Delasticsearch -Des.path.home="\"$ES_HOME\"" $properties -cp "\"$ES_HOME/lib/*\"" org.elasticsearch.plugins.PluginCli $args
|
||||
|
|
Loading…
Reference in New Issue