[target/windows] Fix KBN_PATH_CONF expansion in bin/*.bat (#104517)

When setting the environment variable KBN_PATH_CONF in Windows, paths
containing special characters will be expanded and interpreted, instead
of being treated as a string.  This wraps `%KBN_PATH_CONF%` in quotes to
prevent this.

Testing:
1) set "KBN_PATH_CONF=C:\With space\special()%$characters\kibana\config"
2) bin\kibana*.bat should run
This commit is contained in:
Jonathan Budzenski 2021-07-06 14:58:43 -05:00 committed by GitHub
parent 08257f1f93
commit 90d6b223a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ If Not Exist "%NODE%" (
)
set CONFIG_DIR=%KBN_PATH_CONF%
If [%KBN_PATH_CONF%] == [] (
If ["%KBN_PATH_CONF%"] == [] (
set "CONFIG_DIR=%DIR%\config"
)

View file

@ -13,7 +13,7 @@ If Not Exist "%NODE%" (
)
set CONFIG_DIR=%KBN_PATH_CONF%
If [%KBN_PATH_CONF%] == [] (
If ["%KBN_PATH_CONF%"] == [] (
set "CONFIG_DIR=%DIR%\config"
)

View file

@ -14,7 +14,7 @@ If Not Exist "%NODE%" (
)
set CONFIG_DIR=%KBN_PATH_CONF%
If [%KBN_PATH_CONF%] == [] (
If ["%KBN_PATH_CONF%"] == [] (
set "CONFIG_DIR=%DIR%\config"
)

View file

@ -15,7 +15,7 @@ If Not Exist "%NODE%" (
)
set CONFIG_DIR=%KBN_PATH_CONF%
If [%KBN_PATH_CONF%] == [] (
If ["%KBN_PATH_CONF%"] == [] (
set "CONFIG_DIR=%DIR%\config"
)