pull/15/head
Nikita Bykov 5 years ago
parent a480a65afb
commit 2074b50c3d

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

Loading…
Cancel
Save