Skip to content

Commit

Permalink
Fix null reference error when no buckets are configured (fixes #2427)
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Jul 29, 2018
1 parent f011f24 commit 8804097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/depends.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function dep_resolve($app, $arch, $resolved, $unresolved) {
$unresolved += $app
$null, $manifest, $null, $null = locate $app $bucket
if(!$manifest) {
if(!(buckets).Contains($bucket)) {
if((buckets) -notcontains $bucket) {
warn "Bucket '$bucket' not installed. Add it with 'scoop bucket add $bucket' or 'scoop bucket add $bucket <repo>'."
}
abort "Couldn't find manifest for '$app'$(if(!$bucket) { '.' } else { " from '$bucket' bucket." })"
Expand Down

0 comments on commit 8804097

Please sign in to comment.