mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Correct case of $IsMacOS special variable
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Licensed under the MIT License.
|
||||
Describe "New-Object" -Tags "CI" {
|
||||
It "Support 'ComObject' parameter on platforms" {
|
||||
if ($IsLinux -or $IsMacOs ) {
|
||||
if ($IsLinux -or $IsMacOS ) {
|
||||
{ New-Object -ComObject "Shell.Application" } | Should -Throw -ErrorId "NamedParameterNotFound,Microsoft.PowerShell.Commands.NewObjectCommand"
|
||||
} else {
|
||||
# It works on NanoServer and IoT too
|
||||
|
||||
@@ -23,7 +23,7 @@ Describe "Can load a native assembly" -Tags "CI" {
|
||||
$arch = "linux-" + $processArch
|
||||
$nativeDllName = "nativedll.so"
|
||||
$sourceDllName = "libhostpolicy.so"
|
||||
} elseif ($IsMacOs) {
|
||||
} elseif ($IsMacOS) {
|
||||
$arch = "osx-" + $processArch
|
||||
$nativeDllName = "nativedll.dylib"
|
||||
$sourceDllName = "libhostpolicy.dylib"
|
||||
|
||||
Reference in New Issue
Block a user