File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ function Delete-Unused ($path, $config) {
46
46
# ignore some specific dll that seems to make issue
47
47
continue
48
48
}
49
- $deleteList = Get-ChildItem $target \Plugins - Filter $i.Name - Recurse | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq $i.Name }
50
- $deleteList | ForEach-Object { Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
51
- $deleteList | Remove-Item
49
+ foreach ($plugin in Get-ChildItem $target \Plugins){
50
+ $deleteList = Get-ChildItem $target \Plugins - Filter $i.Name | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq $i.Name }
51
+ $deleteList | ForEach-Object { Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
52
+ $deleteList | Remove-Item
53
+ }
52
54
}
53
55
Remove-Item - Path $target - Include " *.xml" - Recurse
54
56
}
You can’t perform that action at this time.
0 commit comments