fixed naming

pull/16/head
Nikita Bykov 4 years ago
parent 34c6f7f0ec
commit 7f90ceb82c

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

Loading…
Cancel
Save