From d645d3c78119e7278d146a470e51666ca32c08fa Mon Sep 17 00:00:00 2001 From: Bill Long Date: Mon, 9 Jan 2023 07:43:48 -0600 Subject: [PATCH] Pipe HashSet to Get-ChildItem so the collection is not treated as one string --- .build/CodeFormatter.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/CodeFormatter.ps1 b/.build/CodeFormatter.ps1 index 6e022700e4..e4fcd59a65 100644 --- a/.build/CodeFormatter.ps1 +++ b/.build/CodeFormatter.ps1 @@ -73,7 +73,7 @@ if ($optimizeCodeFormatter) { } if ($optimizeCodeFormatter) { - $filesToCheck = Get-ChildItem -Path $filesFullPath -Include "*.ps1", "*.psm1", "*.md" + $filesToCheck = $filesFullPath | Get-ChildItem -Include "*.ps1", "*.psm1", "*.md" Write-Host "Files that we are looking at for code formatting:" $filesToCheck.FullName | Write-Host } else {