Fix Windows check
This commit is contained in:
Родитель
08499bcfa4
Коммит
984456836b
|
@ -8,7 +8,7 @@ Param
|
|||
)
|
||||
$ErrorActionPreference = "stop"
|
||||
|
||||
if ((-not $PSEdition -eq "Desktop") -and (-not $IsWindows))
|
||||
if (($PSEdition -ne "Desktop") -and (-not $IsWindows))
|
||||
{
|
||||
$command = $PSCommandPath.Replace(".ps1", ".sh")
|
||||
if ($AutoStart)
|
||||
|
@ -71,4 +71,4 @@ else
|
|||
{
|
||||
Write-Host "The FactoryOrchestrator service is not set to `"Auto`" start. It will only start manually. Change it to `"Auto`" start on boot at any time with: Set-Service -Name `"Microsoft.FactoryOrchestrator`" -StartupType Automatic"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче