Skip to content

Commit 61b3259

Browse files
committed
manifest: Fix first selected manifest
1 parent a65c84a commit 61b3259

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

lib/manifest.ps1

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,16 @@ function Get-Manifest($app) {
7878
if ($bucket) {
7979
$manifest = manifest $app $bucket
8080
} else {
81+
$count = 0
8182
foreach ($tekcub in Get-LocalBucket) {
82-
$manifest = manifest $app $tekcub
83+
if (!$manifest) {
84+
$manifest = manifest $app $tekcub
85+
}
8386
if ($manifest) {
84-
$bucket = $tekcub
85-
break
87+
if (!$bucket) {
88+
$bucket = $tekcub
89+
}
90+
$count++
8691
}
8792
}
8893
}
@@ -99,6 +104,13 @@ function Get-Manifest($app) {
99104
}
100105
}
101106
}
107+
108+
if ($count) {
109+
if ($count -gt 1) {
110+
warn "Multiple buckets contain '$app', selected manifest are '$bucket/$app'."
111+
}
112+
}
113+
102114
return $app, $manifest, $bucket, $url
103115
}
104116

0 commit comments

Comments
 (0)