This is an automated email from the ASF dual-hosted git repository.
leirui pushed a commit to branch rel/0.9
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/rel/0.9 by this push:
new c4efac2 improve start-server.bat by using quotes to protect against
empty entries
c4efac2 is described below
commit c4efac2405bc1f7ff951cbefef139e4ddc0170fa
Author: Lei Rui <[email protected]>
AuthorDate: Mon Jan 13 17:04:29 2020 +0800
improve start-server.bat by using quotes to protect against empty entries
---
server/src/assembly/resources/sbin/start-server.bat | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/assembly/resources/sbin/start-server.bat
b/server/src/assembly/resources/sbin/start-server.bat
index 57ba10d..0221a81 100755
--- a/server/src/assembly/resources/sbin/start-server.bat
+++ b/server/src/assembly/resources/sbin/start-server.bat
@@ -42,8 +42,8 @@ for /f tokens^=2-5^ delims^=.-_+^" %%j in ('java -fullversion
2^>^&1') do (
set JAVA_VERSION=%MAJOR_VERSION%
-IF NOT %JAVA_VERSION% == 8 (
- IF NOT %JAVA_VERSION% == 11 (
+IF NOT "%JAVA_VERSION%" == "8" (
+ IF NOT "%JAVA_VERSION%" == "11" (
echo IoTDB only supports jdk8 or jdk11, please check your java
version.
goto finally
)