14 lines
336 B
PowerShell
14 lines
336 B
PowerShell
function Test-IsUnixPlatform {
|
|
<#
|
|
.SYNOPSIS
|
|
Returns true if the platform is Unix
|
|
This is as opposed to Windows. Mac is a subset of Unix.
|
|
#>
|
|
[CmdletBinding()]
|
|
[OutputType([bool])]
|
|
param (
|
|
)
|
|
|
|
$platform = $PSVersionTable.Platform
|
|
return (![string]::IsNullOrWhiteSpace($platform) -and $platform -eq "Unix")
|
|
} |