Skip to content

Commit

Permalink
Merge pull request #44 from bgelens/osxfix
Browse files Browse the repository at this point in the history
updated Test-Elevation to use correct IsMaxOs variable
  • Loading branch information
Jaykul authored Oct 26, 2019
2 parents 5e1cebc + a05b13a commit 9e048e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Public/Test-Elevation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ function Test-Elevation {
#>
[CmdletBinding()]
param()
if(-not ($IsLinux -or $IsOSX)) {
if(-not ($IsLinux -or $IsMacOS)) {
[Security.Principal.WindowsIdentity]::GetCurrent().Owner.IsWellKnown("BuiltInAdministratorsSid")
} else {
0 -eq (id -u)
}
}
}

0 comments on commit 9e048e8

Please sign in to comment.