Skip to content

Commit

Permalink
update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dharma-09 committed Sep 20, 2024
1 parent aae0502 commit ae18dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ee/allowedcmd/cmd_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func Apt(ctx context.Context, arg ...string) (*exec.Cmd, error) {
func Brew(ctx context.Context, arg ...string) (*exec.Cmd, error) {
validatedCmd, err := validatedCommand(ctx, "/home/linuxbrew/.linuxbrew/bin/brew", arg...)
if err != nil {
return nil, nil
return nil, err
}

validatedCmd.Env = append(validatedCmd.Environ(), "HOMEBREW_NO_AUTO_UPDATE=1")
Expand Down
2 changes: 1 addition & 1 deletion ee/tables/homebrew/upgradeable.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (t *Table) generate(ctx context.Context, queryContext table.QueryContext) (
if err != nil {
if errors.Is(err, allowedcmd.ErrCommandNotFound) {
// No data, no error
return nil, err
return nil, nil
}
return nil, fmt.Errorf("failure allocating allowedcmd.Brew: %w", err)
}
Expand Down

0 comments on commit ae18dff

Please sign in to comment.