From 7f90ceb82c058f9f2833cdeb37538ea360e54896 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Tue, 8 Sep 2020 14:00:33 +0300 Subject: [PATCH] fixed naming --- pester-extensions.psm1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pester-extensions.psm1 b/pester-extensions.psm1 index b7607bd..1284581 100644 --- a/pester-extensions.psm1 +++ b/pester-extensions.psm1 @@ -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") If ($IsWindows) { - $output = & $env:comspec /c "$Command 2>&1" + $stdout = & $env:comspec /c "$Command 2>&1" } else { - $output = & bash -c "$Command 2>&1" + $stdout = & bash -c "$Command 2>&1" } $exitCode = $LASTEXITCODE return @{ - Output = If ($Multiline -eq $true) { $output } else { [string]$output } + Output = If ($Multiline -eq $true) { $stdout } else { [string]$stdout } ExitCode = $exitCode } }