Skip to content

Commit

Permalink
Fix an error that occurs while starting the service in Windows OS und…
Browse files Browse the repository at this point in the history
…er 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>
  • Loading branch information
2 people authored and williamrandolph committed Jan 20, 2021
1 parent 64fa9f2 commit 8bc12c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ build/
# vscode stuff
.vscode/

# vs stuff
.vs/

# testing stuff
**/.local*
.vagrant/
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/bin/elasticsearch-env.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8bc12c0

Please sign in to comment.