Skip to content

Commit 1eb2609

Browse files
committed
apps_in_bucket(): Use $_.Name on gci result (closes #2707)
1 parent c0dce0e commit 1eb2609

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/buckets.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ function known_bucket_repo($name) {
1818
}
1919

2020
function apps_in_bucket($dir) {
21-
Get-ChildItem $dir | Where-Object { $_.name.endswith('.json') } | ForEach-Object { $_ -replace '.json$', '' }
21+
return Get-ChildItem $dir | Where-Object { $_.Name.endswith('.json') } | ForEach-Object { $_.Name -replace '.json$', '' }
2222
}
2323

2424
function buckets {
2525
$buckets = @()
2626
if(test-path $bucketsdir) {
27-
Get-ChildItem $bucketsdir | ForEach-Object { $buckets += $_.name }
27+
Get-ChildItem $bucketsdir | ForEach-Object { $buckets += $_.Name }
2828
}
29-
$buckets
29+
return $buckets
3030
}
3131

3232
function find_manifest($app, $bucket) {

0 commit comments

Comments
 (0)