From ee94a02015f9ce69d24b26a5357a01d7c905782b Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Thu, 17 Aug 2017 15:04:21 -0400 Subject: [PATCH] Fix warning for JAVA_TOOL_OPTIONS on Windows The error message for warning about the use of JAVA_TOOL_OPTIONS on Windows incorrectly uses $JAVA_TOOL_OPTIONS to dereference the environment variable JAVA_TOOL_OPTIONS; on Windows it should be %JAVA_TOOL_OPTIONS%. --- distribution/src/main/resources/bin/elasticsearch-env.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/src/main/resources/bin/elasticsearch-env.bat b/distribution/src/main/resources/bin/elasticsearch-env.bat index 7f3c9f99f03..ad78a5537a4 100644 --- a/distribution/src/main/resources/bin/elasticsearch-env.bat +++ b/distribution/src/main/resources/bin/elasticsearch-env.bat @@ -30,7 +30,7 @@ if not exist %JAVA% ( rem do not let JAVA_TOOL_OPTIONS slip in (as the JVM does by default) if not "%JAVA_TOOL_OPTIONS%" == "" ( - echo "warning: ignoring JAVA_TOOL_OPTIONS=$JAVA_TOOL_OPTIONS" + echo "warning: ignoring JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS%" set JAVA_TOOL_OPTIONS= )