Преглед изворни кода

Fix an error that occurs while starting the service in Windows OS under a path with a space in it (#61895)

* Handle space in ES_HOME in elasticsearch_env.bat.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
danesh110 пре 4 година
родитељ
комит
028477a991
2 измењених фајлова са 4 додато и 1 уклоњено
  1. 3 0
      .gitignore
  2. 1 1
      distribution/src/bin/elasticsearch-env.bat

+ 3 - 0
.gitignore

@@ -32,6 +32,9 @@ build/
 # vscode stuff
 .vscode/
 
+# vs stuff
+.vs/
+
 # testing stuff
 **/.local*
 .vagrant/

+ 1 - 1
distribution/src/bin/elasticsearch-env.bat

@@ -45,7 +45,7 @@ rem and allows to effectively force use of the bundled jdk when launching ES
 rem by setting JAVA_HOME=
 if "%JAVA_HOME%" == "" (
   set JAVA="%ES_HOME%\jdk\bin\java.exe"
-  set JAVA_HOME="%ES_HOME%\jdk"
+  set "JAVA_HOME=%ES_HOME%\jdk"
   set JAVA_TYPE=bundled jdk
 ) else (
   set JAVA="%JAVA_HOME%\bin\java.exe"