From 42b7dd3f6fe62f70b93b9ca02dd6e7f32bb65913 Mon Sep 17 00:00:00 2001 From: Philip Gichuhi Date: Wed, 12 Jun 2024 12:35:11 +0300 Subject: [PATCH] Fix bug in check for command alias value --- tools/PostGeneration/NewCommandMetadata.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = @{