pull/15/head
Nikita Bykov 5 years ago
parent 4e43e18d8a
commit e76cf52ff1

@ -12,7 +12,11 @@ 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) {
[string[]]$output = & $env:comspec /c "$Command 2>&1"
} else {
$output = & bash -c "$Command 2>&1"
}
$exitCode = $LASTEXITCODE
return @{

Loading…
Cancel
Save