mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
Resolved comments
This commit is contained in:
@@ -11,9 +11,9 @@ function Get-CommandResult {
|
|||||||
[string] $Command,
|
[string] $Command,
|
||||||
[switch] $Multiline
|
[switch] $Multiline
|
||||||
)
|
)
|
||||||
# CMD trick to suppress and show error output because some commands write to stderr (for example, "python --version")
|
# CMD and bash trick to suppress and show error output because some commands write to stderr (for example, "python --version")
|
||||||
If ($IsWindows) {
|
If ($IsWindows) {
|
||||||
[string[]]$output = & $env:comspec /c "$Command 2>&1"
|
$output = & $env:comspec /c "$Command 2>&1"
|
||||||
} else {
|
} else {
|
||||||
$output = & bash -c "$Command 2>&1"
|
$output = & bash -c "$Command 2>&1"
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@ function Get-CommandResult {
|
|||||||
|
|
||||||
function ShouldReturnZeroExitCode {
|
function ShouldReturnZeroExitCode {
|
||||||
Param(
|
Param(
|
||||||
[string] $ActualValue,
|
[String] $ActualValue,
|
||||||
[switch] $Negate,
|
[switch] $Negate,
|
||||||
[string] $Because # This parameter is unused by we need it to match Pester asserts signature
|
[string] $Because # This parameter is unused by we need it to match Pester asserts signature
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user