1 parent a65c84a commit 61b3259Copy full SHA for 61b3259
1 file changed
lib/manifest.ps1
@@ -78,11 +78,16 @@ function Get-Manifest($app) {
78
if ($bucket) {
79
$manifest = manifest $app $bucket
80
} else {
81
+ $count = 0
82
foreach ($tekcub in Get-LocalBucket) {
- $manifest = manifest $app $tekcub
83
+ if (!$manifest) {
84
+ $manifest = manifest $app $tekcub
85
+ }
86
if ($manifest) {
- $bucket = $tekcub
- break
87
+ if (!$bucket) {
88
+ $bucket = $tekcub
89
90
+ $count++
91
}
92
93
@@ -99,6 +104,13 @@ function Get-Manifest($app) {
99
104
100
105
101
106
107
+
108
+ if ($count) {
109
+ if ($count -gt 1) {
110
+ warn "Multiple buckets contain '$app', selected manifest are '$bucket/$app'."
111
112
113
102
114
return $app, $manifest, $bucket, $url
103
115
116
0 commit comments