We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea90b21 commit 8529c38Copy full SHA for 8529c38
Utils/New-CommandDataFile.ps1
@@ -39,7 +39,7 @@ if (-not (Test-Path $builtinModulePath))
39
Function IsPSEditionDesktop
40
{
41
$edition = Get-Variable -Name PSEdition -ErrorAction Ignore
42
- ($edition -eq $null) -or ($edition -eq 'Desktop')
+ ($edition -eq $null) -or ($edition.Value -eq 'Desktop') # $edition is of type psvariable
43
}
44
45
Function Get-CmdletDataFileName
0 commit comments