Shell.executeEnforceStatusPositive

Executes a command via std.process.executeShell, enforcing that the process' exit code was >= 0.

Notes: Positive exit codes may still indicate an error.

class Shell
static
executeEnforceStatusPositive
(
string command
)

Parameters

command string

The command string to execute.

Return Value

Type: Result

The Result of the execution.

Throws

Exception if the process' exit code was anything other than 0 or above.

Meta