Skip to content

Commit

Permalink
feat(install): respect pour_bottle_only_if conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
  • Loading branch information
justenstall committed May 28, 2024
1 parent 2f7d336 commit f906952
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/actions/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ func (action *Install) Run(ctx context.Context, args ...string) error {
return nil
}

// Verify that all bottles can be poured
err = action.Prefix().CanPourBottles(ctx, installs)
if err != nil {
return err
}

// Get bottle registry
reg, err := action.BottleRegistry(ctx)
if err != nil {
Expand Down

0 comments on commit f906952

Please sign in to comment.