Skip to content

Commit

Permalink
bakefiles: commit homebrew updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGamba committed Oct 29, 2024
1 parent 0859523 commit 3f1471d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bakefiles/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ func Homebrew(opt *getoptions.GetOpt) getoptions.CommandFn {
if err != nil {
return fmt.Errorf("failed to run grepp: %w", err)
}
err = run.CMD("git", "add", fmt.Sprintf("../HomebrewFormula/%s.rb", tool)).Log().Run()
if err != nil {
return fmt.Errorf("failed to run git add: %w", err)
}
err = run.CMD("git", "commit", "-m", fmt.Sprintf("HomebrewFormula: latest version of %s", tool)).Log().Run()
if err != nil {
return fmt.Errorf("failed to run git commit: %w", err)
}

return nil
}
Expand Down

0 comments on commit 3f1471d

Please sign in to comment.