diff --git a/tools/PostGeneration/NewCommandMetadata.ps1 b/tools/PostGeneration/NewCommandMetadata.ps1 index 429cdf78d2..fff1daa013 100644 --- a/tools/PostGeneration/NewCommandMetadata.ps1 +++ b/tools/PostGeneration/NewCommandMetadata.ps1 @@ -78,7 +78,7 @@ $ApiVersion | ForEach-Object { if (-not($Null -eq $CommandAliasValue)) { $CommandAliasValue = $CommandAliasValue.Replace("[global::System.Management.Automation.Alias(`"", "").Replace("`")", "").Replace("]", "") } - if(-not($CommandAliasValue -contains "-Mg")) { + if(-not($CommandAliasValue.Contains("-Mg"))) { $CommandAliasValue = $null } $MappingValue = @{