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

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

Loading…
Cancel
Save