Skip to content

Commit 8529c38

Browse files
author
Kapil Borle
committed
Fix IsPSEditionDesktop to check for value property
1 parent ea90b21 commit 8529c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utils/New-CommandDataFile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if (-not (Test-Path $builtinModulePath))
3939
Function IsPSEditionDesktop
4040
{
4141
$edition = Get-Variable -Name PSEdition -ErrorAction Ignore
42-
($edition -eq $null) -or ($edition -eq 'Desktop')
42+
($edition -eq $null) -or ($edition.Value -eq 'Desktop') # $edition is of type psvariable
4343
}
4444

4545
Function Get-CmdletDataFileName

0 commit comments

Comments
 (0)