pull/15/head
Nikita Bykov 5 years ago
parent 4a07aaf854
commit edbe149414

@ -12,8 +12,10 @@ function Get-CommandResult {
[switch] $Multiline
)
# CMD trick to suppress and show error output because some commands write to stderr (for example, "python --version")
if ($IsWindows) {
If ($IsWindows) {
[string[]]$output = & $env:comspec /c "$Command 2>&1"
} else {
$output = & bash -c "$Command 2>&1"
}
$exitCode = $LASTEXITCODE

Loading…
Cancel
Save