Skip to content

Commit 4540d40

Browse files
authored
[Eng] Fix pattern in when matching *.Autorest (#28059)
1 parent ff5bd22 commit 4540d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/BuildScripts/AdaptAutorestModule.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if ($ModuleRootName -in $rootToParentMap.keys) {
5050

5151
$moduleRootPath = Join-Path $SourceDirectory $ModuleRootName
5252
$subModuleNameTrimmed = $SubModuleName
53-
$subModuleName = Get-ChildItem -Path $moduleRootPath -Directory | Where-Object { $_.Name -match '$(subModuleNameTrimmed)\.' } | ForEach-Object { $_.Name }
53+
$subModuleName = Get-ChildItem -Path $moduleRootPath -Directory | Where-Object { $_.Name -match "${subModuleNameTrimmed}\." } | ForEach-Object { $_.Name }
5454

5555
$parentModulePath = Join-Path $moduleRootPath $parentModuleName
5656
$subModulePath = Join-Path $moduleRootPath $SubModuleName
@@ -274,4 +274,4 @@ New-GenerateInfoJson -GeneratedDirectory $subModulePath
274274
<#
275275
Update module in tools\CreateMappings_rules.json
276276
#>
277-
Update-MappingJson -RepoRoot $RepoRoot -ModuleName $ModuleRootName
277+
Update-MappingJson -RepoRoot $RepoRoot -ModuleName $ModuleRootName

0 commit comments

Comments
 (0)