Skip to content

Commit c14e698

Browse files
authored
only if iswindows (#3521)
Co-authored-by: freddydk <[email protected]>
1 parent 9db0c66 commit c14e698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BC.HelperFunctions.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function Get-ContainerHelperConfig {
191191
}
192192
}
193193

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

0 commit comments

Comments
 (0)