This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch MNG-7197
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 6c67c9d0a6b7a717a2e5718a770638b9fcc0fbe3
Author: Michael Osipov <[email protected]>
AuthorDate: Sun Jul 25 14:55:39 2021 +0200

    [MNG-7197] Simplify exit code handling in Windows command startup script
    
    This closes #512
---
 apache-maven/src/assembly/shared/run.cmd | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/apache-maven/src/assembly/shared/run.cmd 
b/apache-maven/src/assembly/shared/run.cmd
index e972160..1aeae16 100755
--- a/apache-maven/src/assembly/shared/run.cmd
+++ b/apache-maven/src/assembly/shared/run.cmd
@@ -24,6 +24,4 @@ if exist "%USERPROFILE%\mavenrc_post.cmd" call 
"%USERPROFILE%\mavenrc_post.cmd"
 @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
 if "%MAVEN_BATCH_PAUSE%"=="on" pause
 
-if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
-
-cmd /C exit /B %ERROR_CODE%
+exit /b %ERROR_CODE%

Reply via email to