Skip to content

Powershell doesn't receive the error code #176

Open
@wolojo

Description

@wolojo

Important note: This works correct in a windows command prompt, but not in PowerShell.

Steps to reproduce: Run the following two commands in PowerShell:

mlcp
$LASTEXITCODE

The first command prints the usage, the last one the error code (or exit code)

Expected output: 1
Actual output: 0

OS: Windows 10
MLCP: 10.0.4.2

Suggested fix.
Add a the following command to the end of the bat file:

exit /B %errorlevel%

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions