-
Bug
-
Resolution: Done
-
Major
-
None
-
None
jboss-cli.ps1 script doesn't return exit value correctly
Steps to reproduce:
- start Command prompt in Windows
- PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 "--commands=nonsence" --timeout=10000
- echo %ERRORLEVEL%
- "0" is printed, "1" should be printed
- add "exit 5" to the end of jboss-cli.ps1 file
- PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 "--commands=nonsence" --timeout=10000
- echo %ERRORLEVEL%
- "5" is printed