From 4f011585eeda84033abe9bbdd53c9a3a82fc3a17 Mon Sep 17 00:00:00 2001 From: yangy Date: Fri, 31 Jul 2020 22:24:11 +0800 Subject: [PATCH] fix an error when executing startup.bat when the log directory exists (#5213) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 吴晟 Wu Sheng --- dist-material/bin/webappService.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist-material/bin/webappService.bat b/dist-material/bin/webappService.bat index dbc3245177..a1ca98c068 100644 --- a/dist-material/bin/webappService.bat +++ b/dist-material/bin/webappService.bat @@ -22,7 +22,7 @@ set WEBAPP_HOME=%~dp0%.. set JARPATH=%WEBAPP_HOME%\webapp set WEBAPP_LOG_DIR=%WEBAPP_HOME%\logs -if exist "%WEBAPP_LOG_DIR%" ( +if not exist "%WEBAPP_LOG_DIR%" ( mkdir "%WEBAPP_LOG_DIR%" ) -- GitLab