diff options
author | Russ Cam <russ.cam@elastic.co> | 2017-05-17 21:22:05 +1000 |
---|---|---|
committer | Jason Tedor <jason@tedor.me> | 2017-05-17 07:23:23 -0400 |
commit | 1288ca7ae7345114755851eac054d76d946f5b81 (patch) | |
tree | 61d552600ceed13b64de0d57fd02230f430b530e | |
parent | ae3f976c042cfd88661fa5d25dd9a7dfb528c42c (diff) |
Handle parentheses in path
The variable assignment needs to be quoted to correctly handle scenario
where the path contains parentheses.
Realtes #24731
-rw-r--r-- | distribution/src/main/resources/bin/elasticsearch.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/distribution/src/main/resources/bin/elasticsearch.bat b/distribution/src/main/resources/bin/elasticsearch.bat index d6eb044f9f..d98de740d2 100644 --- a/distribution/src/main/resources/bin/elasticsearch.bat +++ b/distribution/src/main/resources/bin/elasticsearch.bat @@ -62,7 +62,7 @@ SET HOSTNAME=%COMPUTERNAME% if "%ES_JVM_OPTIONS%" == "" ( rem '0' is the batch file, '~dp' appends the drive and path -set ES_JVM_OPTIONS=%~dp0\..\config\jvm.options +set "ES_JVM_OPTIONS=%~dp0\..\config\jvm.options" ) @setlocal |