Skip to content

Commit

Permalink
Ensure artifact filter function gets array result from get-childitem (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkuttappan authored Mar 18, 2024
1 parent b7d9b64 commit f677b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ function Find-java-Artifacts-For-Apireview($artifactDir, $pkgName)
# Filter for package in "com.azure*" groupid.
$artifactPath = Join-Path $artifactDir "com.azure*" $pkgName
Write-Host "Checking for source jar in artifact path $($artifactPath)"
$files = Get-ChildItem -Recurse "${artifactPath}" | Where-Object -FilterScript {$_.Name.EndsWith("sources.jar")}
$files = @(Get-ChildItem -Recurse "${artifactPath}" | Where-Object -FilterScript {$_.Name.EndsWith("sources.jar")})
if (!$files)
{
Write-Host "$($artifactPath) does not have any package"
Expand Down

0 comments on commit f677b14

Please sign in to comment.