Update IsNixPlatform to handle "darwin" platform

This commit is contained in:
Maxim Lobanov
2020-06-03 19:53:38 +03:00
committed by GitHub
parent d8c3ce72ee
commit 350e2888aa

View File

@@ -81,5 +81,5 @@ function IsNixPlatform {
[String]$Platform
)
return ($Platform -match "macos") -or ($Platform -match "ubuntu") -or ($Platform -match "linux")
return ($Platform -match "macos") -or ($Platform -match "darwin") -or ($Platform -match "ubuntu") -or ($Platform -match "linux")
}