@ -12,10 +12,9 @@ function Get-CommandResult {
[switch] $Multiline
)
# 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"
}
else{
} else {
$stdout = & bash -c "$Command 2>&1"
$exitCode = $LASTEXITCODE