Skip to content

Commit b9bf59a

Browse files
authored
fix an matching error in ExpandModules.ps1
1 parent 7c705de commit b9bf59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/ExpandModules.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ try {
4848
}
4949
foreach ($package in $AllPackages) {
5050
foreach ($module in $ModifiedModules) {
51-
if (($package.Name -like "*$module*") -or ($package.Name -match '^Az(Preview)?\.\d+\.\d+\.\d+\.nupkg$')) {
51+
if (($package.Name -like "Az.$module.*.nupkg") -or ($package.Name -match '^Az(Preview)?\.\d+\.\d+\.\d+\.nupkg$')) {
5252
$module_name = $package.Name
5353
$zip_artifact = $package.FullName -replace ".nupkg$",".zip"
5454
Write-Output "Renaming $package to zip archive $zip_artifact"
@@ -63,4 +63,4 @@ try {
6363
} catch {
6464
$Errors = $_
6565
Write-Error ($_ | Out-String)
66-
}
66+
}

0 commit comments

Comments
 (0)