From 1eb2609db51587772a4b5d1b6f58114f52639568 Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Mon, 29 Oct 2018 15:33:01 +0100 Subject: [PATCH] apps_in_bucket(): Use $_.Name on gci result (closes #2707) --- lib/buckets.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/buckets.ps1 b/lib/buckets.ps1 index 8cb006b605..4d41673f5b 100644 --- a/lib/buckets.ps1 +++ b/lib/buckets.ps1 @@ -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) {