Skip to content

Commit

Permalink
only if iswindows (#3521)
Browse files Browse the repository at this point in the history
Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Apr 29, 2024
1 parent 9db0c66 commit c14e698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BC.HelperFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function Get-ContainerHelperConfig {
}
}

if ($bcContainerHelperConfig.useWinRmSession -ne 'never') {
if ($isWindows -and ($bcContainerHelperConfig.useWinRmSession -ne 'never')) {
# useWinRmSession should be never if the service isn't running
$service = get-service WinRm -erroraction SilentlyContinue
if ($service -and $service.Status -ne "Running") {
Expand Down

0 comments on commit c14e698

Please sign in to comment.