diff --git a/pester-extensions.psm1 b/pester-extensions.psm1 index 215f7e6..2531af4 100644 --- a/pester-extensions.psm1 +++ b/pester-extensions.psm1 @@ -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