Skip to content

Commit

Permalink
Fix warning for JAVA_TOOL_OPTIONS on Windows
Browse files Browse the repository at this point in the history
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%.
  • Loading branch information
jasontedor committed Aug 17, 2017
1 parent a759f4a commit c267faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/src/main/resources/bin/elasticsearch-env.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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=
)

Expand Down

0 comments on commit c267faf

Please sign in to comment.