|
|
@ -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
|
|
|
|