Skip to content

Commit

Permalink
apps_in_bucket(): Use $_.Name on gci result (closes #2707)
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Oct 29, 2018
1 parent c0dce0e commit 1eb2609
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/buckets.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ function known_bucket_repo($name) {
}

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

function buckets {
$buckets = @()
if(test-path $bucketsdir) {
Get-ChildItem $bucketsdir | ForEach-Object { $buckets += $_.name }
Get-ChildItem $bucketsdir | ForEach-Object { $buckets += $_.Name }
}
$buckets
return $buckets
}

function find_manifest($app, $bucket) {
Expand Down

0 comments on commit 1eb2609

Please sign in to comment.