Skip to content

Commit 0917575

Browse files
authored
Merge pull request #2788 from microsoftgraph/fix/command-metadata-alias
Fix bug when populating command alias value in command metadata JSON
2 parents aa40536 + e11e9df commit 0917575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/PostGeneration/NewCommandMetadata.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $ApiVersion | ForEach-Object {
7878
if (-not($Null -eq $CommandAliasValue)) {
7979
$CommandAliasValue = $CommandAliasValue.Replace("[global::System.Management.Automation.Alias(`"", "").Replace("`")", "").Replace("]", "")
8080
}
81-
if(-not($CommandAliasValue -contains "-Mg")) {
81+
if(-not($CommandAliasValue.Contains("-Mg"))) {
8282
$CommandAliasValue = $null
8383
}
8484
$MappingValue = @{

0 commit comments

Comments
 (0)