Skip to content

Commit 7fd10cd

Browse files
GavinEkebergmeister
authored andcommitted
Add macos detection to New-CommandDataFile (#947)
* Add macos detection to New-CommandDataFile * Remove old 'elseif ($IsOSX)' since there is no need to support old Beta versions.
1 parent a7d23f7 commit 7fd10cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Utils/New-CommandDataFile.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ Function Get-CmdletDataFileName
5656
{
5757
$os = 'linux'
5858
}
59-
elseif ($IsOSX)
59+
elseif ($IsMacOS)
6060
{
61-
$os = 'osx'
61+
$os = 'macos'
6262
}
6363
# else it is windows, which is already set
6464
}
@@ -112,4 +112,4 @@ Add-Member -InputObject $shortModuleInfo -NotePropertyName 'ExportedAliases' -No
112112

113113
$allShortModuleInfos = $shortModuleInfos + $shortModuleInfo
114114
$jsonData['Modules'] = $allShortModuleInfos
115-
$jsonData | ConvertTo-Json -Depth 4 | Out-File ((Get-CmdletDataFileName)) -Encoding utf8
115+
$jsonData | ConvertTo-Json -Depth 4 | Out-File ((Get-CmdletDataFileName)) -Encoding utf8

0 commit comments

Comments
 (0)